Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PyShell.py @ 75921:89878808f4ce
Issue #14200 — now displayhook for IDLE works in non-subprocess mode as well as subprecess.
| author | Andrew Svetlov <andrew.svetlov@gmail.com> |
|---|---|
| date | Sun, 25 Mar 2012 11:43:02 +0300 |
| parents | cdcd1f7f0882 |
| children | 21862628a013 |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py Sun Mar 25 08:43:32 2012 +0200 +++ b/Lib/idlelib/PyShell.py Sun Mar 25 11:43:02 2012 +0300 @@ -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()
