#9723: refactor regex.
This commit is contained in:
parent
ae0cbde231
commit
67321cc9b0
|
@ -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*."""
|
||||||
|
|
Loading…
Reference in New Issue