diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-11 09:52:20 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-11 09:52:20 (GMT) |
commit | 02d5db277743050488ad6298817b2956f22c63db (patch) | |
tree | 4c4517c21c1ef62cb4f982a537ef8c34e2d03dcf | |
parent | e0837a03ee73e7a16c2bffb6e5d2fadfdef8927f (diff) | |
download | cpython-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-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] |