]> granicus.if.org Git - python/commitdiff
Removed use of 'cgi.initlog()' - the first call to cgi.log is actually
authorAnthony Baxter <anthonybaxter@gmail.com>
Tue, 3 Aug 2004 11:05:04 +0000 (11:05 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Tue, 3 Aug 2004 11:05:04 +0000 (11:05 +0000)
an initlog() (and initlog()'s docstring says "don't use this"!) This
allows test_cgi to be run repeatedly in a single run of the interpreter.

Lib/test/test_cgi.py

index 5ecaf7f120cfe38f9d6e1b28626d38f699a26a3f..130b19d969c430437c84841bcf5a9e8d0f20637c 100644 (file)
@@ -193,7 +193,6 @@ def main():
     verify(norm(expect.values()) == norm(d.values()))
 
     print "Testing log"
-    cgi.initlog()
     cgi.log("Testing")
     cgi.logfp = sys.stdout
     cgi.initlog("%s", "Testing initlog 1")