/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 breezy/plugins/launchpad/lp_registration.py

  • Committer: Jelmer Vernooij
  • Date: 2020-07-05 12:50:01 UTC
  • mfrom: (7490.40.46 work)
  • mto: (7490.40.48 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200705125001-7s3vo0p55szbbws7
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
 
17
from __future__ import absolute_import
 
18
 
17
19
from io import BytesIO
18
20
import os
19
21
import socket
22
24
except ImportError:
23
25
    from urlparse import urlsplit, urlunsplit  # noqa: F401
24
26
import urllib
25
 
from xmlrpc.client import (
26
 
    __version__ as xmlrpc_version,
27
 
    Fault,
28
 
    ProtocolError,
29
 
    ServerProxy,
30
 
    Transport,
31
 
    )
 
27
try:
 
28
    from xmlrpc.client import (
 
29
        __version__ as xmlrpc_version,
 
30
        Fault,
 
31
        ProtocolError,
 
32
        ServerProxy,
 
33
        Transport,
 
34
        )
 
35
except ImportError:  # python < 3
 
36
    from xmlrpclib import (
 
37
        __version__ as xmlrpc_version,
 
38
        Fault,
 
39
        ProtocolError,
 
40
        Transport,
 
41
        ServerProxy,
 
42
        )
32
43
 
33
44
from ... import (
34
45
    errors,