summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-09-16 21:16:01 (GMT)
committerGuido van Rossum <guido@python.org>2000-09-16 21:16:01 (GMT)
commit57d51f2f1d6067e61a653d4a640c67b8abc928ef (patch)
tree660a723d1a265eacbc1f3b6ff8126aaed0129cf2 /Lib
parent1681627ebf22bbe3155949ca8411d4dca4169d44 (diff)
downloadcpython-57d51f2f1d6067e61a653d4a640c67b8abc928ef.zip
cpython-57d51f2f1d6067e61a653d4a640c67b8abc928ef.tar.gz
cpython-57d51f2f1d6067e61a653d4a640c67b8abc928ef.tar.bz2
Improve the test output a bit.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/cgi.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index fa75929..3b56382 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 "<H1>Second try with a small maxlen...</H1>"
+
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 "<H3>Form Contents:</H3>"
+ if not keys:
+ print "<P>No form fields."
print "<DL>"
for key in keys:
print "<DT>" + escape(key) + ":",