MCPcopy Index your code
hub / github.com/RustPython/RustPython / legacy_normalize

Method legacy_normalize

Lib/importlib/metadata/__init__.py:859–864  ·  view source on GitHub ↗

Normalize the package name as found in the convention in older packaging tools versions and specs.

(name)

Source from the content-addressed store, hash-verified

857
858 @staticmethod
859 def legacy_normalize(name):
860 """
861 Normalize the package name as found in the convention in
862 older packaging tools versions and specs.
863 """
864 return name.lower().replace('-', '_')
865
866 def __bool__(self):
867 return bool(self.name)

Callers 2

__init__Method · 0.95
__init__Method · 0.80

Calls 2

replaceMethod · 0.45
lowerMethod · 0.45

Tested by

no test coverage detected