From 533fac49119ee8fd7c2917b35f5f2102e7f59446 Mon Sep 17 00:00:00 2001
From: Benjamin Drung <bdrung@ubuntu.com>
Date: Wed, 22 Sep 2010 14:07:23 +0200
Subject: [PATCH] requestsync, ubuntutools/lp/lpapicache.py: Import functions
 explicitely.

---
 requestsync                  | 16 ++++++++++++----
 ubuntutools/lp/lpapicache.py |  6 +++++-
 2 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/requestsync b/requestsync
index ecd9068..da2de82 100755
--- a/requestsync
+++ b/requestsync
@@ -32,7 +32,8 @@ from debian.changelog import Version
 
 # ubuntu-dev-tools modules
 from ubuntutools.lp import udtexceptions
-from ubuntutools.requestsync.common import *
+from ubuntutools.requestsync.common import (edit_report, getDebianChangelog,
+                                            raw_input_exit_on_ctrlc)
 # https_proxy fix
 import ubuntutools.common
 
@@ -77,8 +78,11 @@ if __name__ == '__main__':
 
 	# import the needed requestsync module
 	if options.lpapi:
-		from ubuntutools.requestsync.lp import *
-		from ubuntutools.lp.lpapicache import Distribution
+		from ubuntutools.requestsync.lp import (checkExistingReports,
+		                                        getDebianSrcPkg,
+		                                        getUbuntuSrcPkg,
+		                                        needSponsorship, postBug)
+		from ubuntutools.lp.lpapicache import Distribution, Launchpad
 		# See if we have LP credentials and exit if we don't - cannot continue in this case
 
 		try:
@@ -86,7 +90,11 @@ if __name__ == '__main__':
 		except IOError:
 			sys.exit(1)
 	else:
-		from ubuntutools.requestsync.mail import *
+		from ubuntutools.requestsync.mail import (checkExistingReports,
+		                                          getDebianSrcPkg,
+		                                          getEmailAddress,
+		                                          getUbuntuSrcPkg,
+		                                          mailBug, needSponsorship)
 		if not getEmailAddress():
 			sys.exit(1)
 
diff --git a/ubuntutools/lp/lpapicache.py b/ubuntutools/lp/lpapicache.py
index 5ca3fce..aad30d5 100644
--- a/ubuntutools/lp/lpapicache.py
+++ b/ubuntutools/lp/lpapicache.py
@@ -33,7 +33,11 @@ from lazr.restfulclient.resource import Entry
 
 import ubuntutools.lp.libsupport as libsupport
 from ubuntutools.lp import (service, api_version)
-from ubuntutools.lp.udtexceptions import *
+from ubuntutools.lp.udtexceptions import (AlreadyLoggedInError,
+                                          ArchiveNotFoundException,
+                                          PackageNotFoundException,
+                                          PocketDoesNotExistError,
+                                          SeriesNotFoundException)
 
 __all__ = [
     'Archive',