BUG: remove package/version duplicates

This commit is contained in:
L 2017-04-17 11:33:06 -04:00
parent 1a990b52d5
commit 243e6e6833

View File

@ -184,7 +184,16 @@ def get_import_local(imports, encoding=None):
for item in imports:
if item.lower() in local:
result.append(local[item.lower()])
return result
# removing duplicates of package/version
result_unique = [
dict(t)
for t in set([
tuple(d.items()) for d in result
])
]
return result_unique
def get_pkg_names(pkgs):