kopia lustrzana https://github.com/micropython/micropython-lib
urllib.parse: PCRE is not NUL-safe, so let it deal with escapes.
rodzic
23538a2222
commit
71c844f018
|
@ -499,7 +499,7 @@ def unquote_to_bytes(string):
|
||||||
append(item)
|
append(item)
|
||||||
return b''.join(res)
|
return b''.join(res)
|
||||||
|
|
||||||
_asciire = re.compile('([\x00-\x7f]+)')
|
_asciire = re.compile(r'([\x00-\x7f]+)')
|
||||||
|
|
||||||
def unquote(string, encoding='utf-8', errors='replace'):
|
def unquote(string, encoding='utf-8', errors='replace'):
|
||||||
"""Replace %xx escapes by their single-character equivalent. The optional
|
"""Replace %xx escapes by their single-character equivalent. The optional
|
||||||
|
|
Ładowanie…
Reference in New Issue