Show More
@@ -9,10 +9,13 b' from warnings import warn' | |||||
9 | from IPython.utils.decorators import undoc |
|
9 | from IPython.utils.decorators import undoc | |
10 | from .ptshell import TerminalInteractiveShell as PromptToolkitShell |
|
10 | from .ptshell import TerminalInteractiveShell as PromptToolkitShell | |
11 |
|
11 | |||
|
12 | warn("Since IPython 5.0 `IPython.terminal.interactiveshell` is deprecated in favor of `IPython.terminal.ptshell`.", | |||
|
13 | DeprecationWarning) | |||
|
14 | ||||
12 | @undoc |
|
15 | @undoc | |
13 | class TerminalInteractiveShell(PromptToolkitShell): |
|
16 | class TerminalInteractiveShell(PromptToolkitShell): | |
14 | def __init__(self, *args, **kwargs): |
|
17 | def __init__(self, *args, **kwargs): | |
15 |
warn(" |
|
18 | warn("Since IPython 5.0 this is a deprecated alias for IPython.terminal.ptshell.TerminalInteractiveShell. " | |
16 | "The terminal interface of this class now uses prompt_toolkit instead of readline.", |
|
19 | "The terminal interface of this class now uses prompt_toolkit instead of readline.", | |
17 | DeprecationWarning, stacklevel=2) |
|
20 | DeprecationWarning, stacklevel=2) | |
18 | PromptToolkitShell.__init__(self, *args, **kwargs) |
|
21 | PromptToolkitShell.__init__(self, *args, **kwargs) |
General Comments 0
You need to be logged in to leave comments.
Login now