MCPcopy Index your code
hub / github.com/RustPython/RustPython / unquote_plus

Function unquote_plus

Lib/urllib/parse.py:863–870  ·  view source on GitHub ↗

Like unquote(), but also replace plus signs by spaces, as required for unquoting HTML form values. unquote_plus('%7e/abc+def') -> '~/abc def'

(string, encoding='utf-8', errors='replace')

Source from the content-addressed store, hash-verified

861 return r
862
863def unquote_plus(string, encoding='utf-8', errors='replace'):
864 """Like unquote(), but also replace plus signs by spaces, as required for
865 unquoting HTML form values.
866
867 unquote_plus('%7e/abc+def') -> '~/abc def'
868 """
869 string = string.replace('+', ' ')
870 return unquote(string, encoding, errors)
871
872_ALWAYS_SAFE = frozenset(b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
873 b'abcdefghijklmnopqrstuvwxyz'

Callers 1

_unquoteFunction · 0.85

Calls 2

unquoteFunction · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected