1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-14 13:00:08 +02:00

fix PEP9 E713 test for membership should be 'not in'

This commit is contained in:
Hans-Christoph Steiner 2016-02-12 00:39:54 +01:00
parent dfca237329
commit 5780c14df2
2 changed files with 2 additions and 2 deletions

View 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')

View 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)