(arg)
return arg
Quote an argument for later parsing by shlex.split()
Quote an argument for later parsing by shlex.split()
Quote an argument for later parsing by shlex . split ()
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
def shquote ( arg ) : for c in '"' , "'" , "\\" , "#" : if c in arg : return repr ( arg ) if arg . split ( ) != [ arg ] : return repr ( arg ) return arg