def _get_cron_cmdstr(path, user=None):
 if user:
  cmd = 'crontab -u {0}'.format(user)
 else:
  cmd = 'crontab'
 return '{0} {1}'.format(cmd, path)

def _get_cron_cmdstr ( path , user = None ) : if user : cmd = 'crontab -u {0}' . format ( user ) else : cmd = 'crontab' return '{0} {1}' . format ( cmd , path )
returns a format string .