34 lines
1.4 KiB
Diff
34 lines
1.4 KiB
Diff
--- ipython-2.3.1/IPython/utils/rlineimpl.py.orig 2014-11-12 18:08:55.000000000 -0500
|
|
+++ ipython-2.3.1/IPython/utils/rlineimpl.py 2015-01-19 22:45:58.690179800 -0500
|
|
@@ -27,13 +27,6 @@
|
|
have_readline = True
|
|
break
|
|
|
|
-if have_readline and (sys.platform == 'win32' or sys.platform == 'cli'):
|
|
- try:
|
|
- _outputfile=_rl.GetOutputFile()
|
|
- except AttributeError:
|
|
- warnings.warn("Failed GetOutputFile")
|
|
- have_readline = False
|
|
-
|
|
# Test to see if libedit is being used instead of GNU readline.
|
|
# Thanks to Boyd Waters for the original patch.
|
|
uses_libedit = False
|
|
|
|
--- ipython-2.3.1/IPython/core/interactiveshell.py.orig 2015-01-19 23:27:23.065906800 -0500
|
|
+++ ipython-2.3.1/IPython/core/interactiveshell.py 2015-01-19 23:28:02.695374400 -0500
|
|
@@ -657,11 +657,8 @@
|
|
# override sys.stdout and sys.stderr themselves, you need to do that
|
|
# *before* instantiating this class, because io holds onto
|
|
# references to the underlying streams.
|
|
- if (sys.platform == 'win32' or sys.platform == 'cli') and self.has_readline:
|
|
- io.stdout = io.stderr = io.IOStream(self.readline._outputfile)
|
|
- else:
|
|
- io.stdout = io.IOStream(sys.stdout)
|
|
- io.stderr = io.IOStream(sys.stderr)
|
|
+ io.stdout = io.IOStream(sys.stdout)
|
|
+ io.stderr = io.IOStream(sys.stderr)
|
|
|
|
def init_prompts(self):
|
|
self.prompt_manager = PromptManager(shell=self, parent=self)
|