summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc_data
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-07-27 16:29:31 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-07-27 16:29:31 (GMT)
commit9bce311ea4f58ec04cab356a748e173ecfea381c (patch)
treefd767a62dab42bb79ce2e86a2ac6fb970930c10e /Lib/pydoc_data
parentfcdaaa9011be28d4653dadc92df4a94b2f669711 (diff)
downloadcpython-9bce311ea4f58ec04cab356a748e173ecfea381c.zip
cpython-9bce311ea4f58ec04cab356a748e173ecfea381c.tar.gz
cpython-9bce311ea4f58ec04cab356a748e173ecfea381c.tar.bz2
Add shlex.quote function, to escape filenames and command lines (#9723).
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.
Diffstat (limited to 'Lib/pydoc_data')
0 files changed, 0 insertions, 0 deletions