From 516c43d451962bf0d25d5454657c0a57ebb5bea8 2022-10-29 11:17:43 From: Matthias Bussonnier Date: 2022-10-29 11:17:43 Subject: [PATCH] add some infor in warning --- diff --git a/IPython/core/compilerop.py b/IPython/core/compilerop.py index bffac9c..228f705 100644 --- a/IPython/core/compilerop.py +++ b/IPython/core/compilerop.py @@ -191,5 +191,9 @@ def check_linecache_ipython(*args): """ import warnings - warnings.warn("Just call linecache.checkcache() directly.", DeprecationWarning) + warnings.warn( + "Deprecated Since IPython 8.6, Just call linecache.checkcache() directly.", + DeprecationWarning, + stacklevel=2, + ) linecache.checkcache()