[Python-checkins] cpython: #9723: refactor regex.

ezio.melotti python-checkins at python.org
Tue Aug 16 18:03:53 CEST 2011


http://hg.python.org/cpython/rev/5d4438001069
changeset:   71875:5d4438001069
parent:      71872:c821e3a54930
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Tue Aug 16 19:03:41 2011 +0300
summary:
  #9723: refactor regex.

files:
  Lib/shlex.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/shlex.py b/Lib/shlex.py
--- 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*."""

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list