aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources
diff options
context:
space:
mode:
Diffstat (limited to 'pkg_resources')
-rw-r--r--pkg_resources/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index b840b4d8..0575a989 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -2072,7 +2072,7 @@ def dist_factory(path_item, entry, only):
"""Return a dist_factory for the given entry."""
lower = entry.lower()
is_egg_info = lower.endswith('.egg-info')
- is_dist_info = lower.endswith('.dist-info') and os.path.isdir(entry)
+ is_dist_info = lower.endswith('.dist-info') and not os.path.isfile(entry)
is_meta = is_egg_info or is_dist_info
return (
distributions_from_metadata