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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa78d0fbe45a7f16d5d30c3d4e3ad30dc4933e8f;p=thirdparty%2FPython%2Fcpython.git 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 e9b037691511..619bdfc25a1b 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 '''