From 5b6e146c2fc6bca74a94a18465e615e3ef488a2b Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sat, 9 Jan 2021 15:52:34 -0500 Subject: [PATCH] wsgi: Update docstring example for python 3 Fixes #2960 --- tornado/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2