implement some recommendations from pylint
Hanno

Hanno commited on 2018-08-05 00:29:10
Zeige 1 geänderte Dateien mit 3 Einfügungen und 3 Löschungen.

... ...
@@ -52,7 +52,7 @@ def versioncompare(safe_version, find_version):
52 52
             return True
53 53
         if int(find_version[i]) > int(safe_version[i]):
54 54
             return False
55
-    return (len(find_version) < len(safe_version))
55
+    return len(find_version) < len(safe_version)
56 56
 
57 57
 
58 58
 def vulnprint(appname, version, safeversion, vuln, vfilename, subdir,
... ...
@@ -176,9 +176,9 @@ for fdir in args:
176 176
                     file.close()
177 177
 
178 178
                     if item['extra_match']:
179
-                        ematch = (filestr.find(item['extra_match']) != -1)
179
+                        ematch = filestr.find(item['extra_match']) != -1
180 180
                     elif item['extra_nomatch']:
181
-                        ematch = not (filestr.find(item['extra_nomatch']) != -1)
181
+                        ematch = not filestr.find(item['extra_nomatch']) != -1
182 182
                     else:
183 183
                         ematch = True
184 184
 
185 185