Method
__request
(self, methodname, params)
Source from the content-addressed store, hash-verified
| 1456 | self.__transport.close() |
| 1457 | |
| 1458 | def __request(self, methodname, params): |
| 1459 | # call a method on the remote server |
| 1460 | |
| 1461 | request = dumps(params, methodname, encoding=self.__encoding, |
| 1462 | allow_none=self.__allow_none).encode(self.__encoding, 'xmlcharrefreplace') |
| 1463 | |
| 1464 | response = self.__transport.request( |
| 1465 | self.__host, |
| 1466 | self.__handler, |
| 1467 | request, |
| 1468 | verbose=self.__verbose |
| 1469 | ) |
| 1470 | |
| 1471 | if len(response) == 1: |
| 1472 | response = response[0] |
| 1473 | |
| 1474 | return response |
| 1475 | |
| 1476 | def __repr__(self): |
| 1477 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected