commit | 67321cc9b086a62251beeca08f8146c6ceb1a2d4 | [log] [tgz] |
---|---|---|
author | Ezio Melotti <ezio.melotti@gmail.com> | Tue Aug 16 19:03:41 2011 +0300 |
committer | Ezio Melotti <ezio.melotti@gmail.com> | Tue Aug 16 19:03:41 2011 +0300 |
tree | b436ac13273736daee4d5f884e0865c00b96767f | |
parent | ae0cbde2314b5aa939296ad36b4fabc7218e56ed [diff] |
#9723: refactor regex.
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 @@ 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*."""