From d9bbe522ef5d49bab6bed8e6e542cdae39734f93 2016-02-22 21:23:44 From: Thomas Kluyver Date: 2016-02-22 21:23:44 Subject: [PATCH] Rename PTInteractiveShell to TerminalInteractiveShell This means that existing config will get applied, even if not all of it has the desired effect. I haven't thought of any adverse effects of renaming this. --- diff --git a/IPython/terminal/ipapp.py b/IPython/terminal/ipapp.py index 6e3b054..ba80177 100755 --- a/IPython/terminal/ipapp.py +++ b/IPython/terminal/ipapp.py @@ -32,7 +32,7 @@ from IPython.core.shellapp import ( InteractiveShellApp, shell_flags, shell_aliases ) from IPython.extensions.storemagic import StoreMagics -from .ptshell import PTInteractiveShell as TerminalInteractiveShell +from .ptshell import TerminalInteractiveShell from IPython.utils import warn from IPython.paths import get_ipython_dir from traitlets import ( diff --git a/IPython/terminal/ptshell.py b/IPython/terminal/ptshell.py index 97f8bb5..1d15825 100644 --- a/IPython/terminal/ptshell.py +++ b/IPython/terminal/ptshell.py @@ -45,7 +45,7 @@ class IPythonPTCompleter(Completer): for m in matches: yield Completion(m, start_position=start_pos) -class PTInteractiveShell(InteractiveShell): +class TerminalInteractiveShell(InteractiveShell): colors_force = True pt_cli = None @@ -187,7 +187,7 @@ class PTInteractiveShell(InteractiveShell): io.stderr = io.IOStream(sys.stderr) def __init__(self, *args, **kwargs): - super(PTInteractiveShell, self).__init__(*args, **kwargs) + super(TerminalInteractiveShell, self).__init__(*args, **kwargs) self.init_prompt_toolkit_cli() self.keep_running = True @@ -237,4 +237,4 @@ class PTInteractiveShell(InteractiveShell): self._inputhook = None if __name__ == '__main__': - PTInteractiveShell.instance().interact() + TerminalInteractiveShell.instance().interact()