summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shlex.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33262: Deprecate passing None for `s` to shlex.split() (GH-6514)Zackery Spytz2020-04-011-1/+6
| | | | | | | | | * bpo-33262: Deprecate passing None for `s` to shlex.split() This reads the string to split from standard input. * Update What's New. * Fix shlex.rst
* bpo-35168: Make shlex.punctuation_chars read-only (#11631)Alex2019-09-111-0/+7
| | | | | | | | * bpo-35168: Documentation about shlex.punctuation_chars now states that it should be set in __init__.py * bpo-35168: Convert shlex.punctuation_chars to read-only property * Add NEWS.d entry
* bpo-28595: Allow shlex whitespace_split with punctuation_chars (GH-2071)Evan2019-06-011-10/+36
|
* bpo-22454: Add shlex.join() (the opposite of shlex.split()) (GH-7605)Bo Bayles2019-05-291-0/+20
|
* Fixed #29132: Updated shlex to work better with punctuation chars in POSIX mode.Vinay Sajip2017-01-151-0/+8
| | | | Thanks to Evan_ for the report and patch.
* Closes #1521950: Made shlex parsing more shell-like.Vinay Sajip2016-07-291-0/+112
|
* Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-5/+1
| | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* Revert "Issue #16121: Fix line number accounting in shlex"Petri Lehtinen2013-02-231-9/+0
|\
| * Revert "Issue #16121: Fix line number accounting in shlex"Petri Lehtinen2013-02-231-9/+0
| |
* | Issue #16121: Fix line number accounting in shlexPetri Lehtinen2013-02-231-0/+8
|\ \ | |/
| * Issue #16121: Fix line number accounting in shlexPetri Lehtinen2013-02-231-0/+9
| |
* | Avoid unwanted behavior change in shlex.quote (see #9723).Éric Araujo2011-08-091-1/+2
|\ \ | |/ | | | | | | | | | | | | | | | | I simplified the quote code to use a regex instead of a loop+test when I moved pipes.quote to shlex in 5966eeb0457d; Ezio Melotti pointed out that my regex contained redundant parts (now removed) and allowed non-ASCII characters (now disallowed). I think common UNIX shells don’t quote non-ASCII characters, but there’s no harm in doing so. We’ll see if users request a change.
* | Add shlex.quote function, to escape filenames and command lines (#9723).Éric Araujo2011-07-271-2/+18
|/ | | | | | | | 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.
* Recode modules from latin-1 to utf-8Antoine Pitrou2010-10-271-3/+2
|
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-2/+2
|
* Fix test_shlex: Use io.StringIO.Walter Dörwald2007-06-121-7/+2
|
* Whitespace normalization.Tim Peters2003-04-241-2/+2
|
* - Changed shlex.split() method to have more useful andGustavo Niemeyer2003-04-201-7/+3
| | | | meaningful parameters.
* Get test to work under regrtest when running whole suiteNeal Norwitz2003-04-171-1/+6
|
* Implemented posix-mode parsing support in shlex.py, as dicussed inGustavo Niemeyer2003-04-171-0/+191
mailing list, and in patch #722686.