]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Use super() to call super "__init__()" 1600/head
authordinever <dinever@live.cn>
Tue, 8 Dec 2015 05:37:43 +0000 (00:37 -0500)
committerdinever <dinever@live.cn>
Tue, 8 Dec 2015 05:37:43 +0000 (00:37 -0500)
demos/websocket/chatdemo.py

index aac24d94e4f085a8d5293922a3ab3a06e0318a1a..5642f1fd0195f1c83d4e4efada5c3d1307c62a83 100755 (executable)
@@ -44,7 +44,7 @@ class Application(tornado.web.Application):
             static_path=os.path.join(os.path.dirname(__file__), "static"),
             xsrf_cookies=True,
         )
-        tornado.web.Application.__init__(self, handlers, **settings)
+        super(Application, self).__init__(handlers, **settings)
 
 
 class MainHandler(tornado.web.RequestHandler):