requestsync, ubuntutools/lp/lpapicache.py: Import functions explicitely.

This commit is contained in:
Benjamin Drung 2010-09-22 14:07:23 +02:00
parent a2a4fc785d
commit 533fac4911
2 changed files with 17 additions and 5 deletions

View File

@ -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)

View File

@ -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',