~jelmer/brz/custom-launchpad

« back to all changes in this revision

Viewing changes to breezy/plugins/propose/github.py

  • Committer: Jelmer Vernooij
  • Date: 2019-05-20 03:57:29 UTC
  • Revision ID: jelmer@jelmer.uk-20190520035729-9rxvefxkvbbivygy
use default_user_agent function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
from ...i18n import gettext
44
44
from ...sixish import PY3
45
45
from ...trace import note
 
46
from ...transport.http import default_user_agent
46
47
from ...lazy_import import lazy_import
47
48
lazy_import(globals(), """
48
49
from github import Github
83
84
def connect_github():
84
85
    """Connect to GitHub.
85
86
    """
86
 
    user_agent = "Breezy/%s" % breezy_version
87
 
 
 
87
    user_agent = default_user_agent()
88
88
    auth = AuthenticationConfig()
89
89
 
90
90
    credentials = auth.get_credentials('https', 'github.com')