MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _fix_name

Method _fix_name

tools/python-3.11.9-amd64/Lib/pkgutil.py:307–313  ·  view source on GitHub ↗
(self, fullname)

Source from the content-addressed store, hash-verified

305 self.file = open(self.filename, 'rb')
306
307 def _fix_name(self, fullname):
308 if fullname is None:
309 fullname = self.fullname
310 elif fullname != self.fullname:
311 raise ImportError("Loader for module %s cannot handle "
312 "module %s" % (self.fullname, fullname))
313 return fullname
314
315 def is_package(self, fullname):
316 fullname = self._fix_name(fullname)

Callers 4

is_packageMethod · 0.95
get_codeMethod · 0.95
get_sourceMethod · 0.95
get_filenameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected