Commits

ewdurbin  committed ec2d865

assign attr _connection to Transport object if not defined

this assists in Python 2.6 compatibility. xmlrpclib.Transport has _connection by default beginning in 2.7

  • Participants
  • Parent commits 7e07cc9

Comments (0)

Files changed (1)

File src/bandersnatch/master.py

         xmlrpclib.Transport.__init__(self)
         self.timeout = timeout
         self.ssl = ssl
+        if not hasattr(self, '_connection'):
+            self._connection = None
 
     def make_connection(self, host):
         # Partially copied from xmlrpclib.py because its inheritance model is