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

Function escape

Lib/xmlrpc/client.py:149–152  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

147# Internal stuff
148
149def escape(s):
150 s = s.replace("&", "&")
151 s = s.replace("<", "&lt;")
152 return s.replace(">", "&gt;",)
153
154# used in User-Agent header sent
155__version__ = '%d.%d' % sys.version_info[:2]

Callers 3

dump_unicodeMethod · 0.70
dump_structMethod · 0.70
markupMethod · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…