diff options
-rw-r--r-- | isort/finders.py | 6 | ||||
-rw-r--r-- | tox.ini | 1 |
2 files changed, 2 insertions, 5 deletions
diff --git a/isort/finders.py b/isort/finders.py index d3a3c074..04887ba9 100644 --- a/isort/finders.py +++ b/isort/finders.py @@ -287,10 +287,8 @@ class PipfileFinder(ReqsBaseFinder): def _get_names(self, path): with chdir(path): project = Pipfile.load(path) - sections = project.get_sections() - for section in sections.values(): - for name in section: - yield name + for req in project.packages: + yield req.name def _get_files_from_dir(self, path): if 'Pipfile' in os.listdir(path): @@ -16,7 +16,6 @@ commands = py.test test_isort.py {posargs} commands = python setup.py isort [testenv:lint] -basepython = python3.6 deps = flake8==3.5.0 commands = flake8 skip_install = True |