equal
deleted
inserted
replaced
392 connections via an existing pipe.""" |
392 connections via an existing pipe.""" |
393 |
393 |
394 def __init__(self, fd, http_enc=True): |
394 def __init__(self, fd, http_enc=True): |
395 self.__pipe_file = PipeFile(fd, "client-transport") |
395 self.__pipe_file = PipeFile(fd, "client-transport") |
396 self.__http_enc = http_enc |
396 self.__http_enc = http_enc |
397 rpc.Transport.__init__(self) |
397 # This is a workaround to cope with the jsonrpclib update |
|
398 # (version 0.2.6) more safely. Once jsonrpclib is out in |
|
399 # the OS build, we can change it to always pass a 'config' |
|
400 # argument to __init__. |
|
401 if hasattr(rpclib.config, "DEFAULT"): |
|
402 rpc.Transport.__init__(self, rpclib.config.DEFAULT) |
|
403 else: |
|
404 rpc.Transport.__init__(self) |
398 self.verbose = False |
405 self.verbose = False |
399 self._extra_headers = None |
406 self._extra_headers = None |
400 |
407 |
401 def __del__(self): |
408 def __del__(self): |
402 # make sure the destructor gets called for our connection |
409 # make sure the destructor gets called for our connection |