From: Ka-Ping Yee Date: Tue, 4 Dec 2001 18:45:17 +0000 (+0000) Subject: Add "file" argument to Hook constructor. X-Git-Tag: v2.2.1c1~558 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa78d0fbe45a7f16d5d30c3d4e3ad30dc4933e8f;p=python Add "file" argument to Hook constructor. By default, save sys.stdout in self.file when a Hook instance is created (e.g. when cgitb.enable() is called). --- diff --git a/Lib/cgitb.py b/Lib/cgitb.py index e9b0376915..619bdfc25a 100644 --- a/Lib/cgitb.py +++ b/Lib/cgitb.py @@ -19,6 +19,8 @@ tuple (etype, evalue, etb) just like the value of sys.exc_info().""" __author__ = 'Ka-Ping Yee' __version__ = '$Revision$' +import sys + def reset(): """Return a string that resets the CGI and browser to a known state.""" return '''