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

Method encode

Lib/xmlrpc/client.py:396–400  ·  view source on GitHub ↗
(self, out)

Source from the content-addressed store, hash-verified

394 self.data = base64.decodebytes(data)
395
396 def encode(self, out):
397 out.write("<value><base64>\n")
398 encoded = base64.encodebytes(self.data)
399 out.write(encoded.decode('ascii'))
400 out.write("</base64></value>\n")
401
402def _binary(data):
403 # decode xml element contents into a Binary structure

Callers 9

dump_instanceMethod · 0.45
end_base64Method · 0.45
__requestMethod · 0.45
_marshaled_dispatchMethod · 0.45
do_POSTMethod · 0.45
_marshaled_dispatchMethod · 0.45
handle_getMethod · 0.45
do_GETMethod · 0.45
handle_getMethod · 0.45

Calls 2

writeMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected