urllib.parse: PCRE is not NUL-safe, so let it deal with escapes.

pull/118/head
Paul Sokolovsky 2014-05-23 02:14:27 +03:00
rodzic 23538a2222
commit 71c844f018
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -499,7 +499,7 @@ def unquote_to_bytes(string):
append(item)
return b''.join(res)
_asciire = re.compile('([\x00-\x7f]+)')
_asciire = re.compile(r'([\x00-\x7f]+)')
def unquote(string, encoding='utf-8', errors='replace'):
"""Replace %xx escapes by their single-character equivalent. The optional