summaryrefslogtreecommitdiff
path: root/logilab/common/fileutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'logilab/common/fileutils.py')
-rw-r--r--logilab/common/fileutils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/logilab/common/fileutils.py b/logilab/common/fileutils.py
index f89ae1d..0694ade 100644
--- a/logilab/common/fileutils.py
+++ b/logilab/common/fileutils.py
@@ -40,7 +40,7 @@ from typing import Optional, List, Tuple
from _io import TextIOWrapper
from logilab.common import STD_BLACKLIST as BASE_BLACKLIST, IGNORED_EXTENSIONS
-from logilab.common.deprecation import deprecated
+from logilab.common.deprecation import callable_deprecated
from logilab.common.compat import FileIO
@@ -260,7 +260,7 @@ def norm_read(path):
return open(path, "U").read()
-norm_read = deprecated("use \"open(path, 'U').read()\"")(norm_read)
+norm_read = callable_deprecated("use \"open(path, 'U').read()\"")(norm_read)
def norm_open(path):
@@ -275,7 +275,7 @@ def norm_open(path):
return open(path, "U")
-norm_open = deprecated("use \"open(path, 'U')\"")(norm_open)
+norm_open = callable_deprecated("use \"open(path, 'U')\"")(norm_open)
def lines(path: str, comments: Optional[str] = None) -> List[str]: