mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
requestsync, ubuntutools/lp/lpapicache.py: Import functions explicitely.
This commit is contained in:
parent
a2a4fc785d
commit
533fac4911
16
requestsync
16
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)
|
||||
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user