From: Guido van Rossum Date: Thu, 14 Mar 1996 21:30:28 +0000 (+0000) Subject: Added print_arguments() function. X-Git-Tag: v1.4b1~291 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8738a56424e93e55cd92656ac86903630783d0a;p=thirdparty%2FPython%2Fcpython.git Added print_arguments() function. --- diff --git a/Lib/cgi.py b/Lib/cgi.py index 14f1d8fb5715..2ef987ee6f6d 100755 --- a/Lib/cgi.py +++ b/Lib/cgi.py @@ -1043,6 +1043,7 @@ def test(): print_form(form) print_environ() print_directory() + print_arguments() print_environ_usage() except: print "\n\n
"	# Turn off HTML word wrap
@@ -1087,6 +1088,13 @@ def print_directory():
 	print escape(pwd)
     print
 
+def print_arguments():
+    print
+    print "

Command line Arguments:

" + print + print sys.argv + print + def print_environ_usage(): """Dump a list of environment variables used by CGI as HTML.""" print """