From: Ben Darnell Date: Sat, 9 Jan 2021 20:52:34 +0000 (-0500) Subject: wsgi: Update docstring example for python 3 X-Git-Tag: v6.2.0b1~57^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b6e146c2fc6bca74a94a18465e615e3ef488a2b;p=thirdparty%2Ftornado.git wsgi: Update docstring example for python 3 Fixes #2960 --- diff --git a/tornado/wsgi.py b/tornado/wsgi.py index 825b395cf..55ece9a22 100644 --- a/tornado/wsgi.py +++ b/tornado/wsgi.py @@ -73,7 +73,7 @@ class WSGIContainer(object): status = "200 OK" response_headers = [("Content-type", "text/plain")] start_response(status, response_headers) - return ["Hello world!\n"] + return [b"Hello world!\n"] container = tornado.wsgi.WSGIContainer(simple_app) http_server = tornado.httpserver.HTTPServer(container)