]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Update blog.py 1411/head
authorwhu_liuchang <nfcj000@qq.com>
Sun, 5 Apr 2015 12:04:50 +0000 (20:04 +0800)
committerwhu_liuchang <nfcj000@qq.com>
Sun, 5 Apr 2015 12:04:50 +0000 (20:04 +0800)
use recommended style

demos/blog/blog.py

index fde279e462aafcd7a446ee69080d535e06512127..c78e532fddd0177aed986e203114f1394bfd6f31 100755 (executable)
@@ -65,8 +65,7 @@ class Application(tornado.web.Application):
             login_url="/auth/login",
             debug=True,
         )
-        tornado.web.Application.__init__(self, handlers, **settings)
-
+        super(Application, self).__init__(handlers, **settings)
         # Have one global connection to the blog DB across all handlers
         self.db = torndb.Connection(
             host=options.mysql_host, database=options.mysql_database,