diff options
Diffstat (limited to 'logilab/common/configuration.py')
-rw-r--r-- | logilab/common/configuration.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/logilab/common/configuration.py b/logilab/common/configuration.py index fac0121..2429297 100644 --- a/logilab/common/configuration.py +++ b/logilab/common/configuration.py @@ -133,7 +133,7 @@ import configparser as cp from logilab.common.types import OptionParser, Option, attrdict from logilab.common.compat import str_encode as _encode -from logilab.common.deprecation import deprecated +from logilab.common.deprecation import callable_deprecated from logilab.common.textutils import normalize_text, unquote from logilab.common import optik_ext @@ -360,7 +360,7 @@ def _validate( return _call_validator(_type, optdict, name, value) -convert = deprecated("[0.60] convert() was renamed _validate()")(_validate) +convert = callable_deprecated("[0.60] convert() was renamed _validate()")(_validate) # format and output functions ################################################## @@ -941,7 +941,7 @@ class OptionsProviderMixIn(object): optdict = self.get_option_def(opt) return optdict.get("dest", opt.replace("-", "_")) - option_name = deprecated( + option_name = callable_deprecated( "[0.60] OptionsProviderMixIn.option_name() was renamed to option_attrname()" )(option_attrname) |