ubuntutools/lp/libsupport.py: Added glob to imports.

This commit is contained in:
Jonathan Davies 2009-01-21 10:50:26 +00:00
parent 88abaa56cf
commit fc706eafe0
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -19,6 +19,7 @@
#
# Modules.
import glob
import os
import urllib
import urlparse