##// END OF EJS Templates
Merge pull request #9528 from Carreau/improve-deprec...
Thomas Kluyver -
r22444:0844c822 merge
parent child Browse files
Show More
@@ -1,18 +1,21 b''
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 """DEPRECATED: old import location of TerminalInteractiveShell"""
2 """DEPRECATED: old import location of TerminalInteractiveShell"""
3
3
4 # Copyright (c) IPython Development Team.
4 # Copyright (c) IPython Development Team.
5 # Distributed under the terms of the Modified BSD License.
5 # Distributed under the terms of the Modified BSD License.
6
6
7 from warnings import warn
7 from warnings import warn
8
8
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("This is a deprecated alias for IPython.terminal.ptshell.TerminalInteractiveShell. "
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