summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-05-28 22:57:20 (GMT)
committerGuido van Rossum <guido@python.org>1996-05-28 22:57:20 (GMT)
commit503e50b0fa73e3e549dde6cf643bac27f5f6b124 (patch)
tree9a50798a511adc3d53b6ccde52ddbd9987e5aa6d /Lib
parentce84920e0c1e0b496b8984b0207dce7c8201d02f (diff)
downloadcpython-503e50b0fa73e3e549dde6cf643bac27f5f6b124.zip
cpython-503e50b0fa73e3e549dde6cf643bac27f5f6b124.tar.gz
cpython-503e50b0fa73e3e549dde6cf643bac27f5f6b124.tar.bz2
capitalize H3 headers; add 'cgi.' prefix to example code
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/cgi.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index 2ef987e..5508480 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -66,7 +66,7 @@ dictionary. For instance, the following code (which assumes that the
Content-type header and blank line have already been printed) checks that
the fields "name" and "addr" are both set to a non-empty string:
- form = FieldStorage()
+ form = cgi.FieldStorage()
form_ok = 0
if form.has_key("name") and form.has_key("addr"):
if form["name"].value != "" and form["addr"].value != "":
@@ -1054,7 +1054,7 @@ def print_environ():
keys = environ.keys()
keys.sort()
print
- print "<H3>Shell environment:</H3>"
+ print "<H3>Shell Environment:</H3>"
print "<DL>"
for key in keys:
print "<DT>", escape(key), "<DD>", escape(environ[key])
@@ -1066,7 +1066,7 @@ def print_form(form):
keys = form.keys()
keys.sort()
print
- print "<H3>Form contents:</H3>"
+ print "<H3>Form Contents:</H3>"
print "<DL>"
for key in keys:
print "<DT>" + escape(key) + ":",
@@ -1090,7 +1090,7 @@ def print_directory():
def print_arguments():
print
- print "<H3>Command line Arguments:</H3>"
+ print "<H3>Command Line Arguments:</H3>"
print
print sys.argv
print