Mercurial > hg
changeset 37966:f81a51d8fedf
util: drop _deprecatedfunc()
It was only needed for the previously removed forwarding.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 10 May 2018 21:43:32 -0400 |
parents | 70f45f28c04e |
children | 7932be8b0559 |
files | mercurial/util.py |
diffstat | 1 files changed, 0 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Thu May 10 21:41:19 2018 -0400 +++ b/mercurial/util.py Thu May 10 21:43:32 2018 -0400 @@ -3783,20 +3783,6 @@ return result shift += 7 -### -# Deprecation warnings for util.py splitting -### - -def _deprecatedfunc(func, version, modname=None): - def wrapped(*args, **kwargs): - fn = pycompat.sysbytes(func.__name__) - mn = modname or pycompat.sysbytes(func.__module__)[len('mercurial.'):] - msg = "'util.%s' is deprecated, use '%s.%s'" % (fn, mn, fn) - nouideprecwarn(msg, version, stacklevel=2) - return func(*args, **kwargs) - wrapped.__name__ = func.__name__ - return wrapped - defaultdateformats = dateutil.defaultdateformats extendeddateformats = dateutil.extendeddateformats