Commit 67321cc9 authored by Ezio Melotti's avatar Ezio Melotti

#9723: refactor regex.

parent ae0cbde2
......@@ -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*."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment