Source code for importloc.exc
from typing import Any
[docs]
class InvalidLocation(ValueError):
"""
Incorrect format of location specification string.
"""
[docs]
class ModuleNameConflict(ImportError):
"""
Module with this name is already imported.
"""
def __init__(self, modname: str, *args: Any, **kwargs: Any) -> None:
msg = f'Module "{modname}" is already imported'
super().__init__(msg, *args, **kwargs)