ubuntutools/lp/lpapicache.py: Also specify the LP API version to use when

using anonymous login.
This commit is contained in:
Michael Bienia 2010-03-20 19:58:13 +01:00
parent cc8ec956b0
commit dfc59c0558

View File

@ -63,7 +63,8 @@ class Launchpad(object):
def login_anonymously(self):
'''Enforce an anonymous login.'''
if '_Launchpad__lp' not in self.__dict__:
self.__lp = launchpad.Launchpad.login_anonymously('ubuntu-dev-tools', service)
self.__lp = launchpad.Launchpad.login_anonymously('ubuntu-dev-tools',
service_root=service, version=api_version)
else:
raise AlreadyLoggedInError('Already logged in to Launchpad.')