]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix Event.wait typo 3442/head
authorKevin Le <kle@liftoff.io>
Wed, 13 Nov 2024 17:39:13 +0000 (09:39 -0800)
committerKevin Le <kle@liftoff.io>
Wed, 13 Nov 2024 17:39:13 +0000 (09:39 -0800)
tornado/httpserver.py
tornado/tcpserver.py

index 58c74e472d2b7715545bc90b4e61d2124af81407..68c6301b1df5f8e778e41032cca46876506b95b2 100644 (file)
@@ -89,7 +89,7 @@ class HTTPServer(TCPServer, Configurable, httputil.HTTPServerConnectionDelegate)
             async def main():
                 server = HTTPServer()
                 server.listen(8888)
-                await asyncio.Event.wait()
+                await asyncio.Event().wait()
 
             asyncio.run(main())
 
index 6d74224b764091aa9d1e92c10c55ccb9fb040932..4bf9f79367e80b4793d6f845fbf66addc1e677d0 100644 (file)
@@ -75,7 +75,7 @@ class TCPServer:
             async def main():
                 server = TCPServer()
                 server.listen(8888)
-                await asyncio.Event.wait()
+                await asyncio.Event().wait()
 
             asyncio.run(main())