/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2009-11-05 18:32:31 UTC
  • mto: This revision was merged to the branch mainline in revision 4788.
  • Revision ID: john@arbash-meinel.com-20091105183231-9vet6uiv1i7ckiq8
Clarify the comment as to why we are checking __init__

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
class XMLRPCTransport(xmlrpclib.Transport):
58
58
 
59
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
60
62
        init = getattr(xmlrpclib.Transport, '__init__', None)
61
63
        if init is not None:
62
 
            # Not available before python2.5
63
64
            init(self)
64
65
        self._scheme = scheme
65
66
        self._opener = _urllib2_wrappers.Opener()