diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-11 09:53:13 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-11 09:53:13 (GMT) |
commit | f4c9664a242e597e7ac978bc17eeddd3d336addb (patch) | |
tree | dbf035809dc094824e3ad2036216e8c273bf7e71 /Tools/scripts | |
parent | 5e42354263cadce4e56098cf3f4d8760e8569108 (diff) | |
parent | 02d5db277743050488ad6298817b2956f22c63db (diff) | |
download | cpython-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-x | Tools/scripts/serve.py | 2 |
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] |