diff options
author | Ori Bernstein <ori@eigenstate.org> | 2021-06-14 00:00:37 +0000 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2021-06-14 00:00:37 +0000 |
commit | a73a964e51247ed169d322c725a3a18859f109a3 (patch) | |
tree | 3f752d117274d444bda44e85609aeac1acf313f3 /sys/src/cmd/python/Demo/cgi/cgi2.py | |
parent | e64efe273fcb921a61bf27d33b230c4e64fcd425 (diff) |
python, hg: tow outside the environment.
they've served us well, and can ride off into the sunset.
Diffstat (limited to 'sys/src/cmd/python/Demo/cgi/cgi2.py')
-rwxr-xr-x | sys/src/cmd/python/Demo/cgi/cgi2.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sys/src/cmd/python/Demo/cgi/cgi2.py b/sys/src/cmd/python/Demo/cgi/cgi2.py deleted file mode 100755 index d956f6538..000000000 --- a/sys/src/cmd/python/Demo/cgi/cgi2.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/local/bin/python - -"""CGI test 2 - basic use of cgi module.""" - -import cgitb; cgitb.enable() - -import cgi - -def main(): - form = cgi.FieldStorage() - print "Content-type: text/html" - print - if not form: - print "<h1>No Form Keys</h1>" - else: - print "<h1>Form Keys</h1>" - for key in form.keys(): - value = form[key].value - print "<p>", cgi.escape(key), ":", cgi.escape(value) - -if __name__ == "__main__": - main() |