Browse code

implement some recommendations from pylint

Hanno authored on 05/08/2018 00:29:10
Showing 1 changed files
... ...
@@ -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