mercurial/util.py
changeset 37675 5b8a260769a2
parent 37496 1765ed63db40
child 37801 5cab6f5016fa
--- a/mercurial/util.py	Sat Apr 14 12:57:32 2018 +0900
+++ b/mercurial/util.py	Fri Apr 13 14:18:26 2018 -0700
@@ -3781,7 +3781,7 @@
         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)
+        nouideprecwarn(msg, version, stacklevel=2)
         return func(*args, **kwargs)
     wrapped.__name__ = func.__name__
     return wrapped