summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-03-25 08:43:02 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-03-25 08:43:02 (GMT)
commitcd49d5323833ff15cc10a918bdb2afcb02e500a4 (patch)
tree49580ece73a971a467b39ed4fbfc1af6fd71d7cf /Lib/idlelib/PyShell.py
parent1a7742eb4d7960c72fc1be794c988d648e5ef139 (diff)
downloadcpython-cd49d5323833ff15cc10a918bdb2afcb02e500a4.zip
cpython-cd49d5323833ff15cc10a918bdb2afcb02e500a4.tar.gz
cpython-cd49d5323833ff15cc10a918bdb2afcb02e500a4.tar.bz2
Issue #14200 — now displayhook for IDLE works in non-subprocess mode as well as subprecess.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r--Lib/idlelib/PyShell.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index d7edce5..c524d61 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -999,6 +999,8 @@ class PyShell(OutputWindow):
return False
else:
nosub = "==== No Subprocess ===="
+ sys.displayhook = rpc.displayhook
+
self.write("Python %s on %s\n%s\n%s" %
(sys.version, sys.platform, self.COPYRIGHT, nosub))
self.showprompt()