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

Method _marshaled_dispatch

Lib/xmlrpc/server.py:623–635  ·  view source on GitHub ↗
(self, data, dispatch_method = None, path = None)

Source from the content-addressed store, hash-verified

621 return self.dispatchers[path]
622
623 def _marshaled_dispatch(self, data, dispatch_method = None, path = None):
624 try:
625 response = self.dispatchers[path]._marshaled_dispatch(
626 data, dispatch_method, path)
627 except BaseException as exc:
628 # report low level exception back to server
629 # (each dispatcher should have handled their own
630 # exceptions)
631 response = dumps(
632 Fault(1, "%s:%s" % (type(exc), exc)),
633 encoding=self.encoding, allow_none=self.allow_none)
634 response = response.encode(self.encoding, 'xmlcharrefreplace')
635 return response
636
637class CGIXMLRPCRequestHandler(SimpleXMLRPCDispatcher):
638 """Simple handler for XML-RPC data passed through CGI."""

Callers 2

do_POSTMethod · 0.45
handle_xmlrpcMethod · 0.45

Calls 3

dumpsFunction · 0.90
FaultClass · 0.90
encodeMethod · 0.45

Tested by

no test coverage detected