~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Patch Queue Manager
  • Date: 2014-09-22 19:14:34 UTC
  • mfrom: (6598.1.2 bzr)
  • Revision ID: pqm@pqm.ubuntu.com-20140922191434-6bbnpnxi5jab4vim
(richard-wilbur) Allows launchpad APIs to use proxies by default(Paul Gear).
 (Paul Gear)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
# needed by a command that uses it.
24
24
 
25
25
 
 
26
import httplib2
26
27
import os
27
28
import re
28
29
import urlparse
118
119
 
119
120
    :return: The root `Launchpad` object from launchpadlib.
120
121
    """
 
122
    if proxy_info is None:
 
123
        proxy_info = httplib2.proxy_info_from_environment('https')
121
124
    cache_directory = get_cache_directory()
122
125
    launchpad = Launchpad.login_with(
123
126
        'bzr', _get_api_url(service), cache_directory, timeout=timeout,