Skip to content

Commit

Permalink
Fix egg uninstallation
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Sep 29, 2021
1 parent 342335e commit a66b02a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pip/_internal/metadata/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ def installed_as_egg(self) -> bool:
This usually indicates the distribution was installed by (older versions
of) easy_install.
"""
info_location = self.info_location
if not info_location:
location = self.location
if not location:
return False
return info_location.endswith(".egg")
return location.endswith(".egg")

@property
def installed_with_setuptools_egg_info(self) -> bool:
Expand Down

0 comments on commit a66b02a

Please sign in to comment.