diff options
author | Guido van Rossum <guido@python.org> | 1996-03-14 21:30:28 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-03-14 21:30:28 (GMT) |
commit | a8738a56424e93e55cd92656ac86903630783d0a (patch) | |
tree | 6322a0bcab13073d4c3ad611aaa3a25cb3cb6e9b /Lib | |
parent | 06033198469812d1c9297b09b36da42f5dacedee (diff) | |
download | cpython-a8738a56424e93e55cd92656ac86903630783d0a.zip cpython-a8738a56424e93e55cd92656ac86903630783d0a.tar.gz cpython-a8738a56424e93e55cd92656ac86903630783d0a.tar.bz2 |
Added print_arguments() function.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/cgi.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1043,6 +1043,7 @@ def test(): print_form(form) print_environ() print_directory() + print_arguments() print_environ_usage() except: print "\n\n<PRE>" # Turn off HTML word wrap @@ -1087,6 +1088,13 @@ def print_directory(): print escape(pwd) print +def print_arguments(): + print + print "<H3>Command line Arguments:</H3>" + print + print sys.argv + print + def print_environ_usage(): """Dump a list of environment variables used by CGI as HTML.""" print """ |