mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
Add missing spaces to Python scripts.
This commit is contained in:
parent
f2d17d73a5
commit
a3b5e71547
6
ack-sync
6
ack-sync
@ -89,7 +89,7 @@ def get_source(package, version, section, dist, uploader_name, uploader_email,
|
||||
def build_source(dist, dsc_file):
|
||||
try:
|
||||
if sbuild:
|
||||
subprocess.check_call(LogCall(["sbuild", "-d", dist,"-A", dsc_file]))
|
||||
subprocess.check_call(LogCall(["sbuild", "-d", dist, "-A", dsc_file]))
|
||||
else:
|
||||
if not os.path.isdir("buildresult"):
|
||||
os.makedirs("buildresult")
|
||||
@ -101,7 +101,7 @@ def build_source(dist, dsc_file):
|
||||
sys.exit(1)
|
||||
|
||||
def test_install(dist, dsc_file):
|
||||
changes_files=glob.glob(os.path.splitext(dsc_file)[0]+"_*.changes")
|
||||
changes_files = glob.glob(os.path.splitext(dsc_file)[0]+"_*.changes")
|
||||
changes_file = ""
|
||||
|
||||
for temp_file in changes_files:
|
||||
@ -371,7 +371,7 @@ if __name__ == '__main__':
|
||||
elif o in ("-S", "--with-sbuild"):
|
||||
sbuild = True
|
||||
elif o in ("-C", "--pbuilder"):
|
||||
pbuilder=a
|
||||
pbuilder = a
|
||||
elif o in ("-u", "--update"):
|
||||
update = True
|
||||
elif o in ("-U", "--upload"):
|
||||
|
2
dgetlp
2
dgetlp
@ -203,7 +203,7 @@ def Download(dscinfo, number, filename, verify=True):
|
||||
if not res[0]:
|
||||
error(104, "Verification of %s failed: %s", filename, res[2])
|
||||
status("Getting %s", filename)
|
||||
debug("%s%s/%s", base_url,number,filename)
|
||||
debug("%s%s/%s", base_url, number, filename)
|
||||
try:
|
||||
fd = urllib2.urlopen("%s%s/%s" % (base_url, number, filename))
|
||||
outfd = open(filename, 'wb')
|
||||
|
@ -81,7 +81,7 @@ def main():
|
||||
(howmany, url) = check_args()
|
||||
if len(url.split("?", 1)) == 2:
|
||||
# search options not supported, because there is no mapping web ui options <-> API options
|
||||
print >> sys.stderr, "Options in url are not supported, url: %s" %url
|
||||
print >> sys.stderr, "Options in url are not supported, url: %s" % url
|
||||
sys.exit(1)
|
||||
|
||||
launchpad = None
|
||||
@ -97,7 +97,7 @@ def main():
|
||||
except Exception, e:
|
||||
x = getattr(e, "response", {})
|
||||
if x.get("status", None) == "404":
|
||||
print >> sys.stderr, "The URL at '%s' does not appear to be a valid url to a product" %url
|
||||
print >> sys.stderr, "The URL at '%s' does not appear to be a valid url to a product" % url
|
||||
sys.exit(1)
|
||||
else:
|
||||
raise
|
||||
|
@ -39,7 +39,7 @@ if __name__ == '__main__':
|
||||
try:
|
||||
lp = get_launchpad('ubuntu-dev-tools')
|
||||
except Exception, e:
|
||||
print >>sys.stderr, 'Could not connect to Launchpad:', str(e)
|
||||
print >> sys.stderr, 'Could not connect to Launchpad:', str(e)
|
||||
sys.exit(2)
|
||||
|
||||
for bugnum in args:
|
||||
@ -50,12 +50,12 @@ if __name__ == '__main__':
|
||||
print " %s: %s" % (task.bug_target_name, task.status)
|
||||
except HTTPError, e:
|
||||
if e.response.status == 401:
|
||||
print >>sys.stderr, \
|
||||
print >> sys.stderr, \
|
||||
("E: Don't have enough permissions to access bug %s" %
|
||||
bugnum)
|
||||
print >>sys.stderr, e.content
|
||||
print >> sys.stderr, e.content
|
||||
continue
|
||||
elif e.response.status == 404:
|
||||
print >>sys.stderr, "E: Bug %s not found" % bugnum
|
||||
print >> sys.stderr, "E: Bug %s not found" % bugnum
|
||||
else:
|
||||
raise
|
||||
|
@ -110,7 +110,7 @@ def create_credentials(options):
|
||||
|
||||
def list_tokens(options):
|
||||
print "Not implemented yet."
|
||||
print "To get a list of your tokens, please visit %speople/+me/+oauth-tokens" %translate_api_web(options.service)
|
||||
print "To get a list of your tokens, please visit %speople/+me/+oauth-tokens" % translate_api_web(options.service)
|
||||
return 1
|
||||
|
||||
def main():
|
||||
|
@ -48,7 +48,7 @@ def main():
|
||||
version = extract(iso, '/.disk/info')
|
||||
|
||||
if len(version) == 0:
|
||||
print >>sys.stderr, '%s does not appear to be an Ubuntu ISO' % iso
|
||||
print >> sys.stderr, '%s does not appear to be an Ubuntu ISO' % iso
|
||||
err = True
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user