~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2011-07-18 14:22:20 UTC
  • mto: This revision was merged to the branch mainline in revision 6033.
  • Revision ID: john@arbash-meinel.com-20110718142220-nwylw659oip1ene9
Start at least testing the package_branch regex.
And start testing the is-up-to-date logic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
from bzrlib import trace
40
40
 
41
41
 
42
 
DEFAULT_SERIES = 'oneiric'
43
 
 
44
42
class LatestPublication(object):
45
43
    """Encapsulate how to find the latest publication for a given project."""
46
44
 
120
118
            req = urllib2.Request(query_URL)
121
119
            response = urllib2.urlopen(req)
122
120
            json_info = response.read()
123
 
        # XXX: We haven't tested the HTTPError
 
121
        # TODO: We haven't tested the HTTPError
124
122
        except (urllib2.URLError, urllib2.HTTPError), e:
125
123
            trace.mutter('failed to place query to %r' % (query_URL,))
126
124
            trace.log_exception_quietly()