MCPcopy Create free account
hub / github.com/csev/py4e / escape

Function escape

code/oauth.py:48–50  ·  view source on GitHub ↗

Escape a URL including any /.

(s)

Source from the content-addressed store, hash-verified

46 return {'WWW-Authenticate': 'OAuth realm="%s"' % realm}
47
48def escape(s):
49 """Escape a URL including any /."""
50 return urllib.quote(s, safe='~')
51
52def _utf8_str(s):
53 """Convert unicode to utf-8."""

Callers 7

to_headerMethod · 0.70
to_postdataMethod · 0.70
decodeUtf8Function · 0.50
parsestrFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected