From 68b5808eaaa339fa0ac04c10ee3604c9a6a9b499 Mon Sep 17 00:00:00 2001 From: MartinMartimeo Date: Sat, 21 Jul 2012 22:55:38 +0300 Subject: [PATCH] Omitting super(...).__init__() causes python, when RequestHandler is extended with multiple class inheritance, to not execute all __init__ methods of all super classes. --- tornado/web.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tornado/web.py b/tornado/web.py index 99c6858d1..323436f8b 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -105,6 +105,8 @@ class RequestHandler(object): _template_loader_lock = threading.Lock() def __init__(self, application, request, **kwargs): + super(RequestHandler, self).__init__() + self.application = application self.request = request self._headers_written = False -- 2.47.2