From: Ezio Melotti Date: Tue, 16 Aug 2011 16:03:41 +0000 (+0300) Subject: #9723: refactor regex. X-Git-Tag: v3.3.0a1~1691^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67321cc9b086a62251beeca08f8146c6ceb1a2d4;p=thirdparty%2FPython%2Fcpython.git #9723: refactor regex. --- diff --git a/Lib/shlex.py b/Lib/shlex.py index 92c49c360842..69f3b456af10 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*."""