commit | cd49d5323833ff15cc10a918bdb2afcb02e500a4 | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Sun Mar 25 11:43:02 2012 +0300 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Sun Mar 25 11:43:02 2012 +0300 |
tree | 49580ece73a971a467b39ed4fbfc1af6fd71d7cf | |
parent | 1a7742eb4d7960c72fc1be794c988d648e5ef139 [diff] [blame] |
Issue #14200 — now displayhook for IDLE works in non-subprocess mode as well as subprecess.
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 @@ 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()