Add tracebackhide to function call form of deprecated_call
This commit is contained in:
parent
620ba5971f
commit
ff8dbd0ad8
|
@ -45,6 +45,7 @@ def deprecated_call(func=None, *args, **kwargs):
|
|||
if not func:
|
||||
return _DeprecatedCallContext()
|
||||
else:
|
||||
__tracebackhide__ = True
|
||||
with _DeprecatedCallContext():
|
||||
return func(*args, **kwargs)
|
||||
|
||||
|
|
Loading…
Reference in New Issue