diff options
Diffstat (limited to 'logilab/common/modutils.py')
-rw-r--r-- | logilab/common/modutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logilab/common/modutils.py b/logilab/common/modutils.py index 4c1aee6..bc467b3 100644 --- a/logilab/common/modutils.py +++ b/logilab/common/modutils.py @@ -51,7 +51,7 @@ from types import ModuleType from _frozen_importlib_external import FileFinder from logilab.common import STD_BLACKLIST, _handle_blacklist -from logilab.common.deprecation import deprecated +from logilab.common.deprecation import callable_deprecated try: import zipimport @@ -244,7 +244,7 @@ def _canonicalize_path(path: str) -> str: return realpath(expanduser(path)) -@deprecated("you should avoid using modpath_from_file()") +@callable_deprecated("you should avoid using modpath_from_file()") def modpath_from_file(filename: str, extrapath: Optional[Dict[str, str]] = None) -> List[str]: """DEPRECATED: doens't play well with symlinks and sys.meta_path |