chiark / gitweb /
fix PEP9 E713 test for membership should be 'not in'
authorHans-Christoph Steiner <hans@eds.org>
Thu, 11 Feb 2016 23:39:54 +0000 (00:39 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Fri, 12 Feb 2016 07:33:22 +0000 (08:33 +0100)
fdroidserver/common.py
fdroidserver/signindex.py

index 4772abc88b62bc046c26cdc467937d23811181e5..0463db29ad4d7c238db7e6f7edbe0eb341d4e47f 100644 (file)
@@ -157,7 +157,7 @@ def fill_config_defaults(thisconfig):
                         thisconfig['java_paths'][m.group(1)] = d
 
     for java_version in ('7', '8', '9'):
-        if not java_version in thisconfig['java_paths']:
+        if java_version not in thisconfig['java_paths']:
             continue
         java_home = thisconfig['java_paths'][java_version]
         jarsigner = os.path.join(java_home, 'bin', 'jarsigner')
index 82f2216acf501a8cb791e4df03ae4c4100bcf9fe..1d0c320067714f1f1c25d8cc79ba75e075f1d222 100644 (file)
@@ -40,7 +40,7 @@ def main():
 
     config = common.read_config(options)
 
-    if not 'jarsigner' in config:
+    if 'jarsigner' not in config:
         logging.critical('Java jarsigner not found! Install in standard location or set java_paths!')
         sys.exit(1)