/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_api_lite.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
import urllib
40
40
import urllib2
41
41
 
42
 
from breezy import (
 
42
from ... import (
43
43
    revision,
44
44
    trace,
45
45
    )
125
125
            response = urllib2.urlopen(req)
126
126
            json_info = response.read()
127
127
        # TODO: We haven't tested the HTTPError
128
 
        except (urllib2.URLError, urllib2.HTTPError), e:
 
128
        except (urllib2.URLError, urllib2.HTTPError) as e:
129
129
            trace.mutter('failed to place query to %r' % (query_URL,))
130
130
            trace.log_exception_quietly()
131
131
            return None