def _format_auth_line(key, enc, comment, options):
 line = ''
 if options:
  line += '{0} '.format(','.join(options))
 line += '{0} {1} {2}\n'.format(enc, key, comment)
 return line

def _format_auth_line ( key , enc , comment , options ) : line = '' if options : line += '{0} ' . format ( ',' . join ( options ) ) line += '{0} {1} {2}\n' . format ( enc , key , comment ) return line
properly format user input .