From 503e50b0fa73e3e549dde6cf643bac27f5f6b124 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 28 May 1996 22:57:20 +0000 Subject: [PATCH] capitalize H3 headers; add 'cgi.' prefix to example code --- Lib/cgi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/cgi.py b/Lib/cgi.py index 2ef987ee6f..550848092c 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 "

Shell environment:

" + print "

Shell Environment:

" print "
" for key in keys: print "
", escape(key), "
", escape(environ[key]) @@ -1066,7 +1066,7 @@ def print_form(form): keys = form.keys() keys.sort() print - print "

Form contents:

" + print "

Form Contents:

" print "
" for key in keys: print "
" + escape(key) + ":", @@ -1090,7 +1090,7 @@ def print_directory(): def print_arguments(): print - print "

Command line Arguments:

" + print "

Command Line Arguments:

" print print sys.argv print -- 2.50.1