mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-06-06 21:41:28 +00:00
Remove unused imports.
This commit is contained in:
parent
585902ad87
commit
b07271fdf8
@ -31,7 +31,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from debian.changelog import Version
|
from debian.changelog import Version
|
||||||
from distro_info import UbuntuDistroInfo, DistroDataOutdated
|
from distro_info import UbuntuDistroInfo
|
||||||
|
|
||||||
from ubuntutools.config import UDTConfig, ubu_email
|
from ubuntutools.config import UDTConfig, ubu_email
|
||||||
from ubuntutools.lp import udtexceptions
|
from ubuntutools.lp import udtexceptions
|
||||||
@ -43,16 +43,13 @@ from ubuntutools.question import confirmation_prompt, EditBugReport
|
|||||||
#
|
#
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
ubu_info = UbuntuDistroInfo()
|
|
||||||
DEFAULT_SOURCE = 'unstable'
|
|
||||||
|
|
||||||
# Our usage options.
|
# Our usage options.
|
||||||
usage = ('Usage: %prog [options] '
|
usage = ('Usage: %prog [options] '
|
||||||
'<source package> [<target release> [base version]]')
|
'<source package> [<target release> [base version]]')
|
||||||
parser = optparse.OptionParser(usage)
|
parser = optparse.OptionParser(usage)
|
||||||
|
|
||||||
parser.add_option('-d', type='string',
|
parser.add_option('-d', type='string',
|
||||||
dest='dist', default=DEFAULT_SOURCE,
|
dest='dist', default='unstable',
|
||||||
help='Debian distribution to sync from.')
|
help='Debian distribution to sync from.')
|
||||||
parser.add_option('-k', type='string',
|
parser.add_option('-k', type='string',
|
||||||
dest='keyid', default=None,
|
dest='keyid', default=None,
|
||||||
@ -187,6 +184,7 @@ def main():
|
|||||||
if lpapi:
|
if lpapi:
|
||||||
release = Distribution('ubuntu').getDevelopmentSeries().name
|
release = Distribution('ubuntu').getDevelopmentSeries().name
|
||||||
else:
|
else:
|
||||||
|
ubu_info = UbuntuDistroInfo()
|
||||||
release = ubu_info.devel()
|
release = ubu_info.devel()
|
||||||
print >> sys.stderr, 'W: Target release missing - assuming %s' % release
|
print >> sys.stderr, 'W: Target release missing - assuming %s' % release
|
||||||
elif len(args) == 2:
|
elif len(args) == 2:
|
||||||
|
@ -30,7 +30,6 @@ import textwrap
|
|||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
import debian.debian_support
|
import debian.debian_support
|
||||||
from distro_info import UbuntuDistroInfo, DistroDataOutdated
|
|
||||||
from lazr.restfulclient.errors import HTTPError
|
from lazr.restfulclient.errors import HTTPError
|
||||||
|
|
||||||
from ubuntutools.archive import (DebianSourcePackage, UbuntuSourcePackage,
|
from ubuntutools.archive import (DebianSourcePackage, UbuntuSourcePackage,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user