Errors that occurred while trying to import something to document it.
| 402 | return result |
| 403 | |
| 404 | class 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 | |
| 414 | def importfile(path): |
| 415 | """Import a Python source file or compiled file given its path.""" |
no outgoing calls
no test coverage detected