diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-08-16 16:03:41 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-08-16 16:03:41 (GMT) |
commit | 67321cc9b086a62251beeca08f8146c6ceb1a2d4 (patch) | |
tree | b436ac13273736daee4d5f884e0865c00b96767f /Lib/shlex.py | |
parent | ae0cbde2314b5aa939296ad36b4fabc7218e56ed (diff) | |
download | cpython-67321cc9b086a62251beeca08f8146c6ceb1a2d4.zip cpython-67321cc9b086a62251beeca08f8146c6ceb1a2d4.tar.gz cpython-67321cc9b086a62251beeca08f8146c6ceb1a2d4.tar.bz2 |
#9723: refactor regex.
Diffstat (limited to 'Lib/shlex.py')
-rw-r--r-- | Lib/shlex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shlex.py b/Lib/shlex.py index 92c49c3..69f3b45 100644 --- a/Lib/shlex.py +++ b/Lib/shlex.py @@ -276,7 +276,7 @@ def split(s, comments=False, posix=True): return list(lex) -_find_unsafe = re.compile(r'[^\w@%\-\+=:,\./]', re.ASCII).search +_find_unsafe = re.compile(r'[^\w@%+=:,./-]', re.ASCII).search def quote(s): """Return a shell-escaped version of the string *s*.""" |