]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
wsgi: Update docstring example for python 3 2972/head
authorBen Darnell <ben@bendarnell.com>
Sat, 9 Jan 2021 20:52:34 +0000 (15:52 -0500)
committerBen Darnell <ben@bendarnell.com>
Sat, 9 Jan 2021 20:53:13 +0000 (15:53 -0500)
Fixes #2960

tornado/wsgi.py

index 825b395cf5bb21abd0d62f68af62cd92dc213ca0..55ece9a22b98b77bf3d158d12ca36a818fb21ce2 100644 (file)
@@ -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)