~abentley/bzr/api_lookup

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2010-04-27 15:50:48 UTC
  • Revision ID: aaron@aaronbentley.com-20100427155048-3264me0bac5j23ls
Allow httplib2 debugging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from bzrlib import (
28
28
    branch,
29
29
    config,
 
30
    debug,
30
31
    errors,
31
32
    osutils,
32
33
    trace,
106
107
 
107
108
    :return: The root `Launchpad` object from launchpadlib.
108
109
    """
 
110
    if 'httplib2' in debug.debug_flags:
 
111
        import httplib2
 
112
        httplib2.debuglevel = 1
109
113
    cache_directory = get_cache_directory()
110
114
    launchpad = Launchpad.login_with(
111
115
        'bzr', _get_api_url(service), cache_directory, timeout=timeout,