diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-04-10 03:12:18 +0100 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-06-15 16:43:51 +0100 |
| commit | 01ceef68343a42a3bb6592111305fac694a16acf (patch) | |
| tree | 4cfca0e1b423f0ff4e5087b64b031fa74b0b7d00 /setuptools/command | |
| parent | 3ba7ec4bcb9055c01502741c72830458b6e99e61 (diff) | |
| download | python-setuptools-git-01ceef68343a42a3bb6592111305fac694a16acf.tar.gz | |
Fix error with Python 3.7
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/editable_wheel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/editable_wheel.py b/setuptools/command/editable_wheel.py index 536b1cb4..1ee90f57 100644 --- a/setuptools/command/editable_wheel.py +++ b/setuptools/command/editable_wheel.py @@ -303,7 +303,7 @@ def _find_mapped_namespaces(pkg_roots: Dict[str, str]) -> Iterator[str]: def _remove_nested(pkg_roots: Dict[str, str]) -> Dict[str, str]: output = dict(pkg_roots.copy()) - for pkg, path in reversed(pkg_roots.items()): + for pkg, path in reversed(list(pkg_roots.items())): if any( pkg != other and _is_nested(pkg, path, other, other_path) for other, other_path in pkg_roots.items() @@ -389,7 +389,7 @@ class __EditableFinder: if fullname in cls.NAMESPACES: return cls._namespace_spec(fullname) - for pkg, pkg_path in reversed(cls.MAPPING.items()): + for pkg, pkg_path in reversed(list(cls.MAPPING.items())): if fullname.startswith(pkg): return cls._find_spec(fullname, pkg, pkg_path) |
