From: MartinMartimeo Date: Sat, 21 Jul 2012 19:55:38 +0000 (+0300) Subject: Omitting super(...).__init__() causes python, when RequestHandler is extended with... X-Git-Tag: v2.4.0~38^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68b5808eaaa339fa0ac04c10ee3604c9a6a9b499;p=thirdparty%2Ftornado.git Omitting super(...).__init__() causes python, when RequestHandler is extended with multiple class inheritance, to not execute all __init__ methods of all super classes. --- 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