Iterating the dictionary directly instead of calling .keys()

This commit is contained in:
Ivan Kravets
2016-07-09 15:16:42 +03:00
parent e33e950712
commit a73a710364
5 changed files with 6 additions and 6 deletions

View File

@@ -153,7 +153,7 @@ def lib_install(ctx, libid, version):
def lib_install_dependency(ctx, data):
assert isinstance(data, dict)
query = []
for key in data.keys():
for key in data:
if key in ("authors", "frameworks", "platforms", "keywords"):
values = data[key]
if not isinstance(values, list):