summaryrefslogtreecommitdiff
path: root/examples/wsgi
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-01-19 10:33:00 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2011-01-19 10:33:00 -0500
commit6779081b32cfb237062da8bc623a27d47301ce4c (patch)
treefc3372c916cfc9efc61cccffde74528772532b37 /examples/wsgi
parent76e622b46ef71eddfbcd1232ee08b4e55c88c363 (diff)
downloadmako-6779081b32cfb237062da8bc623a27d47301ce4c.tar.gz
- now that trailing whitespace comes up in red, need to get rid of it
Diffstat (limited to 'examples/wsgi')
-rw-r--r--examples/wsgi/htdocs/index.html2
-rw-r--r--examples/wsgi/run_wsgi.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/wsgi/htdocs/index.html b/examples/wsgi/htdocs/index.html
index 0f0ce9d..ef2df4d 100644
--- a/examples/wsgi/htdocs/index.html
+++ b/examples/wsgi/htdocs/index.html
@@ -4,5 +4,5 @@
<%inherit file="root.html"/>
This is index.html
-
+
c is ${c is not UNDEFINED and c or "undefined"}
diff --git a/examples/wsgi/run_wsgi.py b/examples/wsgi/run_wsgi.py
index 82268ad..6e86406 100644
--- a/examples/wsgi/run_wsgi.py
+++ b/examples/wsgi/run_wsgi.py
@@ -45,7 +45,7 @@ def serve(environ, start_response):
filename = os.path.join(root, u)
start_response("200 OK", [('Content-type',guess_type(uri))])
return [file(filename).read()]
-
+
def getfield(f):
"""convert values from cgi.Field objects to plain values."""
if isinstance(f, list):
@@ -68,7 +68,7 @@ def guess_type(path):
return extensions_map[ext]
else:
return extensions_map['']
-
+
if __name__ == '__main__':
import wsgiref.simple_server
server = wsgiref.simple_server.make_server('', port, serve)