]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
update the statement of testing if a handler is a list or tuple 693/head
authoryushengjun <apieceofredcloth@gmail.com>
Mon, 11 Mar 2013 02:54:05 +0000 (10:54 +0800)
committeryushengjun <apieceofredcloth@gmail.com>
Mon, 11 Mar 2013 02:54:05 +0000 (10:54 +0800)
tornado/web.py

index fa3089f15c773ca0d0698e9948195d086a30ea38..18c506f11c3201d054c00e7d5dcd03989ca65dd2 100644 (file)
@@ -1337,7 +1337,7 @@ class Application(object):
             self.handlers.append((re.compile(host_pattern), handlers))
 
         for spec in host_handlers:
-            if isinstance(spec, type(())):
+            if isinstance(spec, (tuple, list)):
                 assert len(spec) in (2, 3)
                 pattern = spec[0]
                 handler = spec[1]