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 # ubuntu-dev-tools modules
from ubuntutools.lp import udtexceptions 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 # https_proxy fix
import ubuntutools.common import ubuntutools.common
@ -77,8 +78,11 @@ if __name__ == '__main__':
# import the needed requestsync module # import the needed requestsync module
if options.lpapi: if options.lpapi:
from ubuntutools.requestsync.lp import * from ubuntutools.requestsync.lp import (checkExistingReports,
from ubuntutools.lp.lpapicache import Distribution 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 # See if we have LP credentials and exit if we don't - cannot continue in this case
try: try:
@ -86,7 +90,11 @@ if __name__ == '__main__':
except IOError: except IOError:
sys.exit(1) sys.exit(1)
else: else:
from ubuntutools.requestsync.mail import * from ubuntutools.requestsync.mail import (checkExistingReports,
getDebianSrcPkg,
getEmailAddress,
getUbuntuSrcPkg,
mailBug, needSponsorship)
if not getEmailAddress(): if not getEmailAddress():
sys.exit(1) sys.exit(1)

View File

@ -33,7 +33,11 @@ from lazr.restfulclient.resource import Entry
import ubuntutools.lp.libsupport as libsupport import ubuntutools.lp.libsupport as libsupport
from ubuntutools.lp import (service, api_version) from ubuntutools.lp import (service, api_version)
from ubuntutools.lp.udtexceptions import * from ubuntutools.lp.udtexceptions import (AlreadyLoggedInError,
ArchiveNotFoundException,
PackageNotFoundException,
PocketDoesNotExistError,
SeriesNotFoundException)
__all__ = [ __all__ = [
'Archive', 'Archive',