From 354a42b6697216b196815958f10066d6f9e4b0b9 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Sun, 25 Jan 2009 01:05:02 +0000 Subject: [PATCH] ubuntutools/lp/functions.py: Rename urlopener import as it conflicts with a variable, causing an error. --- debian/changelog | 4 +++- ubuntutools/lp/functions.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 03cc432..b47086e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,8 +8,10 @@ ubuntu-dev-tools (0.60) UNRELEASED; urgency=low [ Iain Lane ] * requestsync: Only attempt to change bug importance if in ubuntu-dev, as it will fail otherwise. + * ubuntutools/lp/functions.py: Rename urlopener import as it conflicts with + a variable, causing an error. - -- Iain Lane Sun, 25 Jan 2009 00:14:23 +0000 + -- Iain Lane Sun, 25 Jan 2009 01:04:40 +0000 ubuntu-dev-tools (0.59) jaunty; urgency=low diff --git a/ubuntutools/lp/functions.py b/ubuntutools/lp/functions.py index dbe1d89..9261e73 100644 --- a/ubuntutools/lp/functions.py +++ b/ubuntutools/lp/functions.py @@ -1,5 +1,5 @@ import cookie -import urlopener +import urlopener as lp_urlopener def isLPTeamMember(team): """ Checks if the user is a member of a certain team on Launchpad. @@ -17,7 +17,7 @@ def isLPTeamMember(team): # Prepare cookie. cookieFile = cookie.prepareLaunchpadCookie() # Prepare URL opener. - urlopener = urlopener.setupLaunchpadUrlOpener(cookieFile) + urlopener = lp_urlopener.setupLaunchpadUrlOpener(cookieFile) # Try to open the Launchpad team page: try: