mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-15 03:30:29 +03:00
pylint: Reenable C0201 consider-iterating-dictionary
* C0201: Consider iterating the dictionary directly instead of calling .keys() (consider-iterating-dictionary)
This commit is contained in:
parent
a4c1ca48ad
commit
9749b26baa
4 changed files with 4 additions and 5 deletions
|
|
@ -134,7 +134,7 @@ def main():
|
|||
sys.exit(0)
|
||||
|
||||
command = sys.argv[1]
|
||||
if command not in COMMANDS and command not in available_plugins.keys():
|
||||
if command not in COMMANDS and command not in available_plugins:
|
||||
if command in ('-h', '--help'):
|
||||
print_help(available_plugins=available_plugins)
|
||||
sys.exit(0)
|
||||
|
|
|
|||
|
|
@ -504,8 +504,8 @@ def parse_yaml_srclib(metadatapath):
|
|||
cause=e)
|
||||
return thisinfo
|
||||
|
||||
for key in data.keys():
|
||||
if key not in thisinfo.keys():
|
||||
for key in data:
|
||||
if key not in thisinfo:
|
||||
_warn_or_exception(_("Invalid srclib metadata: unknown key "
|
||||
"'{key}' in '{file}'")
|
||||
.format(key=key, file=metadatapath))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue