mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Added print_arguments() function.
This commit is contained in:
parent
0603319846
commit
a8738a5642
1 changed files with 8 additions and 0 deletions
|
@ -1043,6 +1043,7 @@ def test():
|
||||||
print_form(form)
|
print_form(form)
|
||||||
print_environ()
|
print_environ()
|
||||||
print_directory()
|
print_directory()
|
||||||
|
print_arguments()
|
||||||
print_environ_usage()
|
print_environ_usage()
|
||||||
except:
|
except:
|
||||||
print "\n\n<PRE>" # Turn off HTML word wrap
|
print "\n\n<PRE>" # Turn off HTML word wrap
|
||||||
|
@ -1087,6 +1088,13 @@ def print_directory():
|
||||||
print escape(pwd)
|
print escape(pwd)
|
||||||
print
|
print
|
||||||
|
|
||||||
|
def print_arguments():
|
||||||
|
print
|
||||||
|
print "<H3>Command line Arguments:</H3>"
|
||||||
|
print
|
||||||
|
print sys.argv
|
||||||
|
print
|
||||||
|
|
||||||
def print_environ_usage():
|
def print_environ_usage():
|
||||||
"""Dump a list of environment variables used by CGI as HTML."""
|
"""Dump a list of environment variables used by CGI as HTML."""
|
||||||
print """
|
print """
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue