From 1dad28119991bd3aa6279a0c47b4df47a5f6e6fe Mon Sep 17 00:00:00 2001 From: yushengjun Date: Mon, 11 Mar 2013 10:54:05 +0800 Subject: [PATCH] update the statement of testing if a handler is a list or tuple --- tornado/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/web.py b/tornado/web.py index fa3089f15..18c506f11 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -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] -- 2.47.2