]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Parameter is no longer necessary 793/head
authorSerge S. Koval <serge.koval+github@gmail.com>
Mon, 20 May 2013 11:43:12 +0000 (14:43 +0300)
committerSerge S. Koval <serge.koval+github@gmail.com>
Mon, 20 May 2013 11:43:12 +0000 (14:43 +0300)
tornado/stack_context.py

index f52350e9d07a8c03d7d8d448e5e4d6033800feb0..7e44beda636994e8e3335f873a043e0b585e805f 100644 (file)
@@ -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