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

Method dump_bytes

Lib/xmlrpc/client.py:547–551  ·  view source on GitHub ↗
(self, value, write)

Source from the content-addressed store, hash-verified

545 dispatch[str] = dump_unicode
546
547 def dump_bytes(self, value, write):
548 write("<value><base64>\n")
549 encoded = base64.encodebytes(value)
550 write(encoded.decode('ascii'))
551 write("</base64></value>\n")
552 dispatch[bytes] = dump_bytes
553 dispatch[bytearray] = dump_bytes
554

Callers

nothing calls this directly

Calls 2

writeFunction · 0.50
decodeMethod · 0.45

Tested by

no test coverage detected