Show More
@@ -3781,7 +3781,7 b' def _deprecatedfunc(func, version, modna' | |||||
3781 | fn = pycompat.sysbytes(func.__name__) |
|
3781 | fn = pycompat.sysbytes(func.__name__) | |
3782 | mn = modname or pycompat.sysbytes(func.__module__)[len('mercurial.'):] |
|
3782 | mn = modname or pycompat.sysbytes(func.__module__)[len('mercurial.'):] | |
3783 | msg = "'util.%s' is deprecated, use '%s.%s'" % (fn, mn, fn) |
|
3783 | msg = "'util.%s' is deprecated, use '%s.%s'" % (fn, mn, fn) | |
3784 | nouideprecwarn(msg, version) |
|
3784 | nouideprecwarn(msg, version, stacklevel=2) | |
3785 | return func(*args, **kwargs) |
|
3785 | return func(*args, **kwargs) | |
3786 | wrapped.__name__ = func.__name__ |
|
3786 | wrapped.__name__ = func.__name__ | |
3787 | return wrapped |
|
3787 | return wrapped |
General Comments 0
You need to be logged in to leave comments.
Login now