From d2d0f0751470c12c74ae466baac52740418454f7 2010-04-25 22:52:18 From: Kiorky Date: 2010-04-25 22:52:18 Subject: [PATCH] Fix zope profile extension. Note that this extension is now in deathrow pending update to the new apis, but I don't want it to go out of sync as this fix was committed to 0.10.1 branch. Closes: https://bugs.launchpad.net/ipython/+bug/443972 --- diff --git a/IPython/deathrow/ipy_profile_zope.py b/IPython/deathrow/ipy_profile_zope.py index 5049de0..690b021 100644 --- a/IPython/deathrow/ipy_profile_zope.py +++ b/IPython/deathrow/ipy_profile_zope.py @@ -24,6 +24,8 @@ import sys import os import textwrap +sys_oldstdin = sys.stdin + # The import below effectively obsoletes your old-style ipythonrc[.ini], # so consider yourself warned! # import ipy_defaults @@ -314,6 +316,7 @@ def main(): """ % ( ",".join([ x for x in dir(zope_debug.utils) if not x.startswith("_") ] ) ) ) + sys.stdin = sys_oldstdin ip.user_ns.update( zope_debug.namespace )