From: Guido van Rossum Date: Sat, 16 Sep 2000 21:16:01 +0000 (+0000) Subject: Improve the test output a bit. X-Git-Tag: v2.0b2~240 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57d51f2f1d6067e61a653d4a640c67b8abc928ef;p=thirdparty%2FPython%2Fcpython.git Improve the test output a bit. --- diff --git a/Lib/cgi.py b/Lib/cgi.py index fa759298fb2b..3b563826e869 100755 --- a/Lib/cgi.py +++ b/Lib/cgi.py @@ -850,7 +850,8 @@ def test(environ=os.environ): except: print_exception() - # Second try with a small maxlen... + print "

Second try with a small maxlen...

" + global maxlen maxlen = 50 try: @@ -859,7 +860,6 @@ def test(environ=os.environ): print_environ(environ) print_directory() print_arguments() - print_environ_usage() except: print_exception() @@ -895,6 +895,8 @@ def print_form(form): keys.sort() print print "

Form Contents:

" + if not keys: + print "

No form fields." print "

" for key in keys: print "
" + escape(key) + ":",