def _quote_arg(arg):
 if (('"' not in arg) and (' ' in arg)):
  return ('"%s"' % arg)
 return arg

def _quote_arg ( arg ) : if ( ( '"' not in arg ) and ( ' ' in arg ) ) : return ( '"%s"' % arg ) return arg
quote the argument for safe use in a shell command line .