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

Skip to content

Commit 503e50b

Browse files
committed
capitalize H3 headers; add 'cgi.' prefix to example code
1 parent ce84920 commit 503e50b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/cgi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
Content-type header and blank line have already been printed) checks that
6767
the fields "name" and "addr" are both set to a non-empty string:
6868
69-
form = FieldStorage()
69+
form = cgi.FieldStorage()
7070
form_ok = 0
7171
if form.has_key("name") and form.has_key("addr"):
7272
if form["name"].value != "" and form["addr"].value != "":
@@ -1054,7 +1054,7 @@ def print_environ():
10541054
keys = environ.keys()
10551055
keys.sort()
10561056
print
1057-
print "<H3>Shell environment:</H3>"
1057+
print "<H3>Shell Environment:</H3>"
10581058
print "<DL>"
10591059
for key in keys:
10601060
print "<DT>", escape(key), "<DD>", escape(environ[key])
@@ -1066,7 +1066,7 @@ def print_form(form):
10661066
keys = form.keys()
10671067
keys.sort()
10681068
print
1069-
print "<H3>Form contents:</H3>"
1069+
print "<H3>Form Contents:</H3>"
10701070
print "<DL>"
10711071
for key in keys:
10721072
print "<DT>" + escape(key) + ":",
@@ -1090,7 +1090,7 @@ def print_directory():
10901090

10911091
def print_arguments():
10921092
print
1093-
print "<H3>Command line Arguments:</H3>"
1093+
print "<H3>Command Line Arguments:</H3>"
10941094
print
10951095
print sys.argv
10961096
print

0 commit comments

Comments
 (0)