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

Class ErrorDuringImport

tools/python-3.11.9-amd64/Lib/pydoc.py:404–412  ·  view source on GitHub ↗

Errors that occurred while trying to import something to document it.

Source from the content-addressed store, hash-verified

402 return result
403
404class ErrorDuringImport(Exception):
405 """Errors that occurred while trying to import something to document it."""
406 def __init__(self, filename, exc_info):
407 self.filename = filename
408 self.exc, self.value, self.tb = exc_info
409
410 def __str__(self):
411 exc = self.exc.__name__
412 return 'problem in %s - %s: %s' % (self.filename, exc, self.value)
413
414def importfile(path):
415 """Import a Python source file or compiled file given its path."""

Callers 2

importfileFunction · 0.85
safeimportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected