Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 57d51f2

Browse files
committed
Improve the test output a bit.
1 parent 1681627 commit 57d51f2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/cgi.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,8 @@ def g(f=f):
850850
except:
851851
print_exception()
852852

853-
# Second try with a small maxlen...
853+
print "<H1>Second try with a small maxlen...</H1>"
854+
854855
global maxlen
855856
maxlen = 50
856857
try:
@@ -859,7 +860,6 @@ def g(f=f):
859860
print_environ(environ)
860861
print_directory()
861862
print_arguments()
862-
print_environ_usage()
863863
except:
864864
print_exception()
865865

@@ -895,6 +895,8 @@ def print_form(form):
895895
keys.sort()
896896
print
897897
print "<H3>Form Contents:</H3>"
898+
if not keys:
899+
print "<P>No form fields."
898900
print "<DL>"
899901
for key in keys:
900902
print "<DT>" + escape(key) + ":",

0 commit comments

Comments
 (0)