~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

(gz) Fix test failure on alpha by correcting format string for
 gc_chk_sha1_record (Martin [gz])

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
 
from bzrlib.i18n import gettext
 
29
 
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(gettext('Setting ssh/sftp usernames for launchpad.net.'))
 
64
            trace.note('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_from_url(LAUNCHPAD_BASE)
 
103
        _transport = transport.get_transport(LAUNCHPAD_BASE)
104
104
 
105
105
    try:
106
106
        data = _transport.get_bytes('~%s/+sshkeys' % username)