From: Christian Ruppert Date: Sat, 26 Feb 2011 00:34:29 +0000 (+0100) Subject: Fix some pylint complains X-Git-Tag: gentoolkit-0.3.0.5~64 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=85af50f1a7234c56077556756400f2a540f76605;p=gentoolkit.git Fix some pylint complains --- diff --git a/bin/glsa-check b/bin/glsa-check index a35375b..1968607 100755 --- a/bin/glsa-check +++ b/bin/glsa-check @@ -48,7 +48,7 @@ params = [] try: args, params = getopt(sys.argv[1:], "".join([o[0][1] for o in optionmap]), \ [x[2:] for x in reduce(lambda x,y: x+y, [z[1:-1] for z in optionmap])]) - args = [a for a,b in args] + args = [a for a, b in args] for option in ["--nocolor", "-n"]: if option in args: @@ -231,7 +231,7 @@ def summarylist(myglsalist, fd1=sys.stdout, fd2=sys.stderr, encoding="utf-8"): if verbose: access = ("[%-8s] " % myglsa.access) else: - access="" + access = "" fd1.write(color(myglsa.nr) + " " + color(status) + " " + color(access) + myglsa.title + " (") if not verbose: @@ -289,7 +289,7 @@ if mode in ["dump", "fix", "inject", "pretend"]: sys.stderr.write(emergecmd+"\n") exitcode = os.system(emergecmd) # system() returns the exitcode in the high byte of a 16bit integer - if exitcode >= 1<<8: + if exitcode >= 1 << 8: exitcode >>= 8 if exitcode: sys.exit(exitcode)