~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/lp_registration.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-11-05 20:53:49 UTC
  • mfrom: (4776.3.4 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20091105205349-t6i87y0r027ikb98
(vila) Fix bug #475585,
        the lp: proxy support broke python2.4 compatibility

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
class XMLRPCTransport(xmlrpclib.Transport):
58
58
 
59
 
    def __init__(self, scheme, use_datetime=0):
60
 
        xmlrpclib.Transport.__init__(self, use_datetime=use_datetime)
 
59
    def __init__(self, scheme):
 
60
        # In python2.4 xmlrpclib.Transport is a old-style class, and does not
 
61
        # define __init__, so we check first
 
62
        init = getattr(xmlrpclib.Transport, '__init__', None)
 
63
        if init is not None:
 
64
            init(self)
61
65
        self._scheme = scheme
62
66
        self._opener = _urllib2_wrappers.Opener()
63
67
        self.verbose = 0