diff options
Diffstat (limited to 'Lib/xmlrpc/client.py')
-rw-r--r-- | Lib/xmlrpc/client.py | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/Lib/xmlrpc/client.py b/Lib/xmlrpc/client.py index c752621ad6..e66ee843a1 100644 --- a/Lib/xmlrpc/client.py +++ b/Lib/xmlrpc/client.py @@ -1129,7 +1129,7 @@ class Transport: self.verbose = verbose - return self._parse_response(resp, None) + return self.parse_response(resp) ## # Create parser. @@ -1212,29 +1212,12 @@ class Transport: # @return Response tuple and target method. def parse_response(self, file): - # compatibility interface - return self._parse_response(file, None) - - ## - # Parse response (alternate interface). This is similar to the - # parse_response method, but also provides direct access to the - # underlying socket object (where available). - # - # @param file Stream. - # @param sock Socket handle (or None, if the socket object - # could not be accessed). - # @return Response tuple and target method. - - def _parse_response(self, file, sock): # read response from input file/socket, and parse it p, u = self.getparser() while 1: - if sock: - response = sock.recv(1024) - else: - response = file.read(1024) + response = file.read(1024) if not response: break if self.verbose: |