projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1681627
)
Improve the test output a bit.
author
Guido van Rossum
<guido@python.org>
Sat, 16 Sep 2000 21:16:01 +0000
(21:16 +0000)
committer
Guido van Rossum
<guido@python.org>
Sat, 16 Sep 2000 21:16:01 +0000
(21:16 +0000)
Lib/cgi.py
patch
|
blob
|
history
diff --git
a/Lib/cgi.py
b/Lib/cgi.py
index fa759298fb2bb90d164dba3eb5278b361d64133a..3b563826e86908d10cfcf1239c0b90e00a7f3293 100755
(executable)
--- 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) + ":",