mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
#9723: refactor regex.
This commit is contained in:
parent
ae0cbde231
commit
67321cc9b0
1 changed files with 1 additions and 1 deletions
|
|
@ -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*."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue