From 29e9b237ae05a64e8cc476e2243339ed9dc3a5dc Mon Sep 17 00:00:00 2001 From: frostming Date: Wed, 28 Mar 2018 16:47:46 +0800 Subject: [PATCH] fix iteration --- pipenv/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/project.py b/pipenv/project.py index d17900b9f7..361cd6a6de 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -619,7 +619,7 @@ def add_package_to_pipfile(self, package_name, dev=False): p[key] = {} package = convert_deps_from_pip(package_name) package_name = [k for k in package.keys()][0] - for name in p[key]: + for name in dict(p[key]): # Normalize names to compare if ( pep423_name(name) == pep423_name(package_name) and