~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2009-04-28 20:12:44 UTC
  • mto: This revision was merged to the branch mainline in revision 4316.
  • Revision ID: aaron@aaronbentley.com-20090428201244-jm84ghz5hdxt6hww
ReconfigureĀ preservesĀ referenceĀ locations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
def _get_auth_user(auth=None):
81
81
    if auth is None:
82
82
        auth = AuthenticationConfig()
83
 
    username = auth.get_user('ssh', '.launchpad.net')
 
83
    username = auth.get_user('ssh', '.launchpad.net', default="")
 
84
    if username == "":
 
85
        username = None
84
86
    return username
85
87
 
86
88
def _set_auth_user(username, auth=None):