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 c68e382 commit b06c382Copy full SHA for b06c382
importlib_metadata/__init__.py
@@ -958,8 +958,9 @@ def _normalized_name(self):
958
stem = os.path.basename(str(self._path))
959
return self._name_from_stem(stem) or super()._normalized_name
960
961
- def _name_from_stem(self, stem):
962
- name, ext = os.path.splitext(stem)
+ @staticmethod
+ def _name_from_stem(stem):
963
+ _, ext = os.path.splitext(stem)
964
if ext not in ('.dist-info', '.egg-info'):
965
return
966
name, sep, rest = stem.partition('-')
0 commit comments