diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-03-25 11:43:02 +0300 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-03-25 11:43:02 +0300 |
commit | cd49d5323833ff15cc10a918bdb2afcb02e500a4 (patch) | |
tree | 49580ece73a971a467b39ed4fbfc1af6fd71d7cf /Lib/idlelib/PyShell.py | |
parent | 1a7742eb4d7960c72fc1be794c988d648e5ef139 (diff) | |
download | cpython-git-cd49d5323833ff15cc10a918bdb2afcb02e500a4.tar.gz |
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.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index d7edce501f..c524d61e4e 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() |