Fix "invalid escape sequences" error on Python 3.6
This commit is contained in:
parent
24d8a75982
commit
ec85ded83c
283 changed files with 538 additions and 538 deletions
|
@ -2344,7 +2344,7 @@ try:
|
|||
from urllib.parse import unquote_plus as compat_urllib_parse_unquote_plus
|
||||
except ImportError: # Python 2
|
||||
_asciire = (compat_urllib_parse._asciire if hasattr(compat_urllib_parse, '_asciire')
|
||||
else re.compile('([\x00-\x7f]+)'))
|
||||
else re.compile(r'([\x00-\x7f]+)'))
|
||||
|
||||
# HACK: The following are the correct unquote_to_bytes, unquote and unquote_plus
|
||||
# implementations from cpython 3.4.3's stdlib. Python 2's version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue