MCPcopy Index your code
hub / github.com/python/cpython / unquote_plus

Function unquote_plus

Lib/urllib/parse.py:983–990  ·  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

981 return r
982
983def unquote_plus(string, encoding='utf-8', errors='replace'):
984 """Like unquote(), but also replace plus signs by spaces, as required for
985 unquoting HTML form values.
986
987 unquote_plus('%7e/abc+def') -> '~/abc def'
988 """
989 string = string.replace('+', ' ')
990 return unquote(string, encoding, errors)
991
992_ALWAYS_SAFE = frozenset(b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
993 b'abcdefghijklmnopqrstuvwxyz'

Callers 1

_unquoteFunction · 0.85

Calls 2

unquoteFunction · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…