From 1b2901f09dc507d03325d1dc0637115b7cf5382d Mon Sep 17 00:00:00 2001 From: "Serge S. Koval" Date: Mon, 20 May 2013 14:43:12 +0300 Subject: [PATCH] Parameter is no longer necessary --- tornado/stack_context.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.47.2