We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 342335e commit a66b02aCopy full SHA for a66b02a
src/pip/_internal/metadata/base.py
@@ -167,10 +167,10 @@ def installed_as_egg(self) -> bool:
167
This usually indicates the distribution was installed by (older versions
168
of) easy_install.
169
"""
170
- info_location = self.info_location
171
- if not info_location:
+ location = self.location
+ if not location:
172
return False
173
- return info_location.endswith(".egg")
+ return location.endswith(".egg")
174
175
@property
176
def installed_with_setuptools_egg_info(self) -> bool:
0 commit comments