/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: Breezy landing bot
  • Author(s): Martin
  • Date: 2017-06-05 21:50:19 UTC
  • mfrom: (6656.1.3 dict_viewing)
  • Revision ID: breezy.the.bot@gmail.com-20170605215019-uw7s07tx11p194kh
Apply 2to3 dict fixer and clean up with sixish view methods

Merged from https://code.launchpad.net/~gz/brz/dict_viewing/+merge/325108

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
    # NB: these should always end in a slash to avoid xmlrpclib appending
95
95
    # '/RPC2'
96
96
    LAUNCHPAD_INSTANCE = {}
97
 
    for instance, domain in LAUNCHPAD_DOMAINS.iteritems():
 
97
    for instance, domain in LAUNCHPAD_DOMAINS.items():
98
98
        LAUNCHPAD_INSTANCE[instance] = 'https://xmlrpc.%s/bazaar/' % domain
99
99
 
100
100
    # We use production as the default because edge has been deprecated circa
197
197
        else:
198
198
            domains = (
199
199
                'bazaar.%s' % domain
200
 
                for domain in self.LAUNCHPAD_DOMAINS.itervalues())
 
200
                for domain in self.LAUNCHPAD_DOMAINS.values())
201
201
            if hostinfo not in domains:
202
202
                raise NotLaunchpadBranch(branch_url)
203
203
        return path.lstrip('/')