From: Serge S. Koval Date: Mon, 20 May 2013 11:43:12 +0000 (+0300) Subject: Parameter is no longer necessary X-Git-Tag: v3.1.0~37^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F793%2Fhead;p=thirdparty%2Ftornado.git Parameter is no longer necessary --- diff --git a/tornado/stack_context.py b/tornado/stack_context.py index f52350e9d..7e44beda6 100644 --- a/tornado/stack_context.py +++ b/tornado/stack_context.py @@ -106,10 +106,10 @@ class StackContext(object): context that are currently pending). This is an advanced feature and not necessary in most applications. """ - def __init__(self, context_factory, _active=True): + def __init__(self, context_factory): self.context_factory = context_factory self.contexts = [] - self.active = _active + self.active = True def _deactivate(self): self.active = False @@ -175,9 +175,9 @@ class ExceptionStackContext(object): If the exception handler returns true, the exception will be consumed and will not be propagated to other exception handlers. """ - def __init__(self, exception_handler, _active=True): + def __init__(self, exception_handler): self.exception_handler = exception_handler - self.active = _active + self.active = True def _deactivate(self): self.active = False