~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Patch Queue Manager
  • Date: 2011-09-22 14:12:18 UTC
  • mfrom: (6155.3.1 jam)
  • Revision ID: pqm@pqm.ubuntu.com-20110922141218-86s4uu6nqvourw4f
(jameinel) Cleanup comments bzrlib/smart/__init__.py (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    transport,
27
27
    )
28
28
from bzrlib.config import AuthenticationConfig, GlobalConfig
29
 
 
 
29
from bzrlib.i18n import gettext
30
30
 
31
31
LAUNCHPAD_BASE = 'https://launchpad.net/'
32
32
 
61
61
        auth_username = _get_auth_user(auth)
62
62
        # Auto-upgrading
63
63
        if auth_username is None:
64
 
            trace.note('Setting ssh/sftp usernames for launchpad.net.')
 
64
            trace.note(gettext('Setting ssh/sftp usernames for launchpad.net.'))
65
65
            _set_auth_user(username, auth)
66
66
        elif auth_username != username:
67
67
            raise MismatchedUsernames()
100
100
    uploaded SSH keys.
101
101
    """
102
102
    if _transport is None:
103
 
        _transport = transport.get_transport(LAUNCHPAD_BASE)
 
103
        _transport = transport.get_transport_from_url(LAUNCHPAD_BASE)
104
104
 
105
105
    try:
106
106
        data = _transport.get_bytes('~%s/+sshkeys' % username)