From 0844c822b9c6b660bef38de6e9c558e1d383ed8a 2016-06-02 18:07:02 From: Thomas Kluyver Date: 2016-06-02 18:07:02 Subject: [PATCH] Merge pull request #9528 from Carreau/improve-deprec Improve deprecation warning. --- diff --git a/IPython/terminal/interactiveshell.py b/IPython/terminal/interactiveshell.py index a294a9d..5c89ca0 100644 --- a/IPython/terminal/interactiveshell.py +++ b/IPython/terminal/interactiveshell.py @@ -9,10 +9,13 @@ from warnings import warn from IPython.utils.decorators import undoc from .ptshell import TerminalInteractiveShell as PromptToolkitShell +warn("Since IPython 5.0 `IPython.terminal.interactiveshell` is deprecated in favor of `IPython.terminal.ptshell`.", + DeprecationWarning) + @undoc class TerminalInteractiveShell(PromptToolkitShell): def __init__(self, *args, **kwargs): - warn("This is a deprecated alias for IPython.terminal.ptshell.TerminalInteractiveShell. " + warn("Since IPython 5.0 this is a deprecated alias for IPython.terminal.ptshell.TerminalInteractiveShell. " "The terminal interface of this class now uses prompt_toolkit instead of readline.", DeprecationWarning, stacklevel=2) PromptToolkitShell.__init__(self, *args, **kwargs)