]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
should use python3 unicode in 'blog' demo #2977 2978/head
authoryouguanxinqing <youguanxinqing@qq.com>
Tue, 12 Jan 2021 10:35:38 +0000 (18:35 +0800)
committeryouguanxinqing <youguanxinqing@qq.com>
Tue, 12 Jan 2021 10:35:38 +0000 (18:35 +0800)
demos/blog/blog.py

index 3f1db9ecfffcdc0c52cbb95309f6219813a77e3b..a16ddf3e7f7cdc262b8895ac8422302c791d2728 100755 (executable)
@@ -68,7 +68,7 @@ class Application(tornado.web.Application):
             (r"/auth/logout", AuthLogoutHandler),
         ]
         settings = dict(
-            blog_title=u"Tornado Blog",
+            blog_title="Tornado Blog",
             template_path=os.path.join(os.path.dirname(__file__), "templates"),
             static_path=os.path.join(os.path.dirname(__file__), "static"),
             ui_modules={"Entry": EntryModule},