summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-01-11 09:52:20 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-01-11 09:52:20 (GMT)
commit02d5db277743050488ad6298817b2956f22c63db (patch)
tree4c4517c21c1ef62cb4f982a537ef8c34e2d03dcf
parente0837a03ee73e7a16c2bffb6e5d2fadfdef8927f (diff)
downloadcpython-02d5db277743050488ad6298817b2956f22c63db.zip
cpython-02d5db277743050488ad6298817b2956f22c63db.tar.gz
cpython-02d5db277743050488ad6298817b2956f22c63db.tar.bz2
Fixed the serve.py script.
The application object must return an iterable yielding bytestrings.
-rwxr-xr-xTools/scripts/serve.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/serve.py b/Tools/scripts/serve.py
index 68c25f0..dae21f2 100755
--- a/Tools/scripts/serve.py
+++ b/Tools/scripts/serve.py
@@ -22,7 +22,7 @@ def app(environ, respond):
return util.FileWrapper(open(fn, "rb"))
else:
respond('404 Not Found', [('Content-Type', 'text/plain')])
- return ['not found']
+ return [b'not found']
if __name__ == '__main__':
path = sys.argv[1]