[Python-checkins] cpython (3.3): Fixed the serve.py script.

serhiy.storchaka python-checkins at python.org
Sat Jan 11 10:53:28 CET 2014


http://hg.python.org/cpython/rev/e6dccdd55e5a
changeset: 88407:e6dccdd55e5a
branch: 3.3
parent: 88403:e00fc830937c
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sat Jan 11 11:52:20 2014 +0200
summary:
 Fixed the serve.py script.
The application object must return an iterable yielding bytestrings.
files:
 Tools/scripts/serve.py | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Tools/scripts/serve.py b/Tools/scripts/serve.py
--- a/Tools/scripts/serve.py
+++ b/Tools/scripts/serve.py
@@ -22,7 +22,7 @@
 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]
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /