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 )