From 57d51f2f1d6067e61a653d4a640c67b8abc928ef Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 16 Sep 2000 21:16:01 +0000 Subject: [PATCH] Improve the test output a bit. --- Lib/cgi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Lib/cgi.py b/Lib/cgi.py index fa759298fb..3b563826e8 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) + ":", -- 2.40.0