mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 15:41:09 +00:00
ubuntutools/lp/libsupport.py: Added glob to imports.
This commit is contained in:
parent
88abaa56cf
commit
fc706eafe0
@ -32,6 +32,7 @@ def main():
|
||||
if sys.argv[1] in ["--help", "-h"]:
|
||||
print USAGE
|
||||
sys.exit(0)
|
||||
|
||||
launchpad = get_launchpad("ubuntu-dev-tools")
|
||||
for arg in sys.argv[1:]:
|
||||
try:
|
||||
@ -39,7 +40,9 @@ def main():
|
||||
except:
|
||||
print >> sys.stderr, "'%s' is not a valid bug number." % arg
|
||||
sys.exit(1)
|
||||
|
||||
b = launchpad.bugs[number]
|
||||
|
||||
for a in b.attachments:
|
||||
f = a.data.open()
|
||||
filename = os.path.join(os.getcwd(), f.filename)
|
||||
|
@ -19,6 +19,7 @@
|
||||
#
|
||||
|
||||
# Modules.
|
||||
import glob
|
||||
import os
|
||||
import urllib
|
||||
import urlparse
|
||||
|
Loading…
x
Reference in New Issue
Block a user