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

Method __request

Lib/xmlrpc/client.py:1429–1445  ·  view source on GitHub ↗
(self, methodname, params)

Source from the content-addressed store, hash-verified

1427 self.__transport.close()
1428
1429 def __request(self, methodname, params):
1430 # call a method on the remote server
1431
1432 request = dumps(params, methodname, encoding=self.__encoding,
1433 allow_none=self.__allow_none).encode(self.__encoding, 'xmlcharrefreplace')
1434
1435 response = self.__transport.request(
1436 self.__host,
1437 self.__handler,
1438 request,
1439 verbose=self.__verbose
1440 )
1441
1442 if len(response) == 1:
1443 response = response[0]
1444
1445 return response
1446
1447 def __repr__(self):
1448 return (

Callers

nothing calls this directly

Calls 3

dumpsFunction · 0.70
encodeMethod · 0.45
requestMethod · 0.45

Tested by

no test coverage detected