mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
fix PEP9 E713 test for membership should be 'not in'
This commit is contained in:
parent
dfca237329
commit
5780c14df2
2 changed files with 2 additions and 2 deletions
|
|
@ -157,7 +157,7 @@ def fill_config_defaults(thisconfig):
|
||||||
thisconfig['java_paths'][m.group(1)] = d
|
thisconfig['java_paths'][m.group(1)] = d
|
||||||
|
|
||||||
for java_version in ('7', '8', '9'):
|
for java_version in ('7', '8', '9'):
|
||||||
if not java_version in thisconfig['java_paths']:
|
if java_version not in thisconfig['java_paths']:
|
||||||
continue
|
continue
|
||||||
java_home = thisconfig['java_paths'][java_version]
|
java_home = thisconfig['java_paths'][java_version]
|
||||||
jarsigner = os.path.join(java_home, 'bin', 'jarsigner')
|
jarsigner = os.path.join(java_home, 'bin', 'jarsigner')
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ def main():
|
||||||
|
|
||||||
config = common.read_config(options)
|
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!')
|
logging.critical('Java jarsigner not found! Install in standard location or set java_paths!')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue