summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-01-11 09:53:13 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-01-11 09:53:13 (GMT)
commitf4c9664a242e597e7ac978bc17eeddd3d336addb (patch)
treedbf035809dc094824e3ad2036216e8c273bf7e71 /Tools/scripts
parent5e42354263cadce4e56098cf3f4d8760e8569108 (diff)
parent02d5db277743050488ad6298817b2956f22c63db (diff)
downloadcpython-f4c9664a242e597e7ac978bc17eeddd3d336addb.zip
cpython-f4c9664a242e597e7ac978bc17eeddd3d336addb.tar.gz
cpython-f4c9664a242e597e7ac978bc17eeddd3d336addb.tar.bz2
Fixed the serve.py script.
The application object must return an iterable yielding bytestrings.
Diffstat (limited to 'Tools/scripts')
-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]