1 |
commit: 85af50f1a7234c56077556756400f2a540f76605 |
2 |
Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 00:34:29 2011 +0000 |
4 |
Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 00:34:29 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=85af50f1 |
7 |
|
8 |
Fix some pylint complains |
9 |
|
10 |
--- |
11 |
bin/glsa-check | 6 +++--- |
12 |
1 files changed, 3 insertions(+), 3 deletions(-) |
13 |
|
14 |
diff --git a/bin/glsa-check b/bin/glsa-check |
15 |
index a35375b..1968607 100755 |
16 |
--- a/bin/glsa-check |
17 |
+++ b/bin/glsa-check |
18 |
@@ -48,7 +48,7 @@ params = [] |
19 |
try: |
20 |
args, params = getopt(sys.argv[1:], "".join([o[0][1] for o in optionmap]), \ |
21 |
[x[2:] for x in reduce(lambda x,y: x+y, [z[1:-1] for z in optionmap])]) |
22 |
- args = [a for a,b in args] |
23 |
+ args = [a for a, b in args] |
24 |
|
25 |
for option in ["--nocolor", "-n"]: |
26 |
if option in args: |
27 |
@@ -231,7 +231,7 @@ def summarylist(myglsalist, fd1=sys.stdout, fd2=sys.stderr, encoding="utf-8"): |
28 |
if verbose: |
29 |
access = ("[%-8s] " % myglsa.access) |
30 |
else: |
31 |
- access="" |
32 |
+ access = "" |
33 |
|
34 |
fd1.write(color(myglsa.nr) + " " + color(status) + " " + color(access) + myglsa.title + " (") |
35 |
if not verbose: |
36 |
@@ -289,7 +289,7 @@ if mode in ["dump", "fix", "inject", "pretend"]: |
37 |
sys.stderr.write(emergecmd+"\n") |
38 |
exitcode = os.system(emergecmd) |
39 |
# system() returns the exitcode in the high byte of a 16bit integer |
40 |
- if exitcode >= 1<<8: |
41 |
+ if exitcode >= 1 << 8: |
42 |
exitcode >>= 8 |
43 |
if exitcode: |
44 |
sys.exit(exitcode) |