parameters: (arg)
return_statement: return arg
docstring: Quote an argument for later parsing by shlex.split()
docstring_summary: Quote an argument for later parsing by shlex.split()
docstring_tokens: Quote an argument for later parsing by shlex . split ()
function: def shquote(arg):
      """Quote an argument for later parsing by shlex.split()"""
      for c in '"', "'", "\\", "#":
          if c in arg:
              return repr(arg)
      if arg.split() != [arg]:
          return repr(arg)
      return arg
function_tokens: def shquote ( arg ) : for c in '"' , "'" , "\\" , "#" : if c in arg : return repr ( arg ) if arg . split ( ) != [ arg ] : return repr ( arg ) return arg