From a3b5e7154768e17f7718db12c9c9dc107f5d34fe Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Mon, 27 Dec 2010 14:01:03 +0100 Subject: [PATCH] Add missing spaces to Python scripts. --- ack-sync | 6 +++--- dgetlp | 2 +- hugdaylist | 4 ++-- lp-list-bugs | 8 ++++---- manage-credentials | 2 +- ubuntu-iso | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ack-sync b/ack-sync index b0802e2..9e48859 100755 --- a/ack-sync +++ b/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"): diff --git a/dgetlp b/dgetlp index 16bde9d..c021b3c 100755 --- a/dgetlp +++ b/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') diff --git a/hugdaylist b/hugdaylist index b7fc6aa..6727ce1 100755 --- a/hugdaylist +++ b/hugdaylist @@ -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 diff --git a/lp-list-bugs b/lp-list-bugs index ea451c7..31d50f0 100755 --- a/lp-list-bugs +++ b/lp-list-bugs @@ -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 diff --git a/manage-credentials b/manage-credentials index 94da717..647a9f0 100755 --- a/manage-credentials +++ b/manage-credentials @@ -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(): diff --git a/ubuntu-iso b/ubuntu-iso index a9ea792..c93746e 100755 --- a/ubuntu-iso +++ b/ubuntu-iso @@ -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