[Python-bugs-list] [ python-Bugs-483126 ] cgitb does not recover

noreply@sourceforge.net noreply@sourceforge.net
Sun, 18 Nov 2001 10:38:36 -0800


Bugs item #483126, was opened at 2001-11-18 10:38
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=483126&group_id=5470

Category: Python Library
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Dan Grassi (dgrassi)
Assigned to: Nobody/Anonymous (nobody)
Summary: cgitb does not recover

Initial Comment:
chitb does not recover when sys.stdout has been 
resigned.  The fix is simple, set sys.stdout to 
sys.__stdout__ in cgitb.handle right after the 
import of sys.

line 160:
    def handle(self, info=None):
        import sys
+       sys.stdout = sys.__stdout__
        print reset()


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=483126&group_id=5470