Skip to content

Commit e0f41ae

Browse files
committed
Fix egg uninstallation
1 parent e1680b2 commit e0f41ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pip/_internal/metadata/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ def installed_as_egg(self) -> bool:
167167
This usually indicates the distribution was installed by (older versions
168168
of) easy_install.
169169
"""
170-
info_location = self.info_location
171-
if not info_location:
170+
location = self.location
171+
if not location:
172172
return False
173-
return info_location.endswith(".egg")
173+
return location.endswith(".egg")
174174

175175
@property
176176
def installed_with_setuptools_egg_info(self) -> bool:

0 commit comments

Comments
 (0)