From: yushengjun Date: Mon, 11 Mar 2013 02:54:05 +0000 (+0800) Subject: update the statement of testing if a handler is a list or tuple X-Git-Tag: v3.1.0~118^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dad28119991bd3aa6279a0c47b4df47a5f6e6fe;p=thirdparty%2Ftornado.git update the statement of testing if a handler is a list or tuple --- 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]