summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-08-16 16:03:41 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-08-16 16:03:41 (GMT)
commit67321cc9b086a62251beeca08f8146c6ceb1a2d4 (patch)
treeb436ac13273736daee4d5f884e0865c00b96767f /Lib
parentae0cbde2314b5aa939296ad36b4fabc7218e56ed (diff)
downloadcpython-67321cc9b086a62251beeca08f8146c6ceb1a2d4.zip
cpython-67321cc9b086a62251beeca08f8146c6ceb1a2d4.tar.gz
cpython-67321cc9b086a62251beeca08f8146c6ceb1a2d4.tar.bz2
#9723: refactor regex.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/shlex.py2
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*."""