From: whu_liuchang Date: Sun, 5 Apr 2015 12:04:50 +0000 (+0800) Subject: Update blog.py X-Git-Tag: v4.2.0b1~35^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1411%2Fhead;p=thirdparty%2Ftornado.git Update blog.py use recommended style --- diff --git a/demos/blog/blog.py b/demos/blog/blog.py index fde279e46..c78e532fd 100755 --- a/demos/blog/blog.py +++ b/demos/blog/blog.py @@ -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,