#9723: refactor regex.

This commit is contained in:
Ezio Melotti 2011-08-16 19:03:41 +03:00
parent ae0cbde231
commit 67321cc9b0
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ def split(s, comments=False, posix=True):
return list(lex) return list(lex)
_find_unsafe = re.compile(r'[^\w@%\-\+=:,\./]', re.ASCII).search _find_unsafe = re.compile(r'[^\w@%+=:,./-]', re.ASCII).search
def quote(s): def quote(s):
"""Return a shell-escaped version of the string *s*.""" """Return a shell-escaped version of the string *s*."""