• Éric Araujo's avatar
    Add shlex.quote function, to escape filenames and command lines (#9723). · 9bce311e
    Éric Araujo yazdı
    This function used to live as pipes.quote, where it was undocumented but
    used anyway.  (An alias still exists for backward compatibility.)  The
    tests have been moved as is, but the code of the function was changed to
    use a regex instead of a loop with string comparisons (at Ian Bicking’s
    suggestion).  I’m terrible at regexes, so any feedback is welcome.
    9bce311e
subprocess.rst 30.1 KB