]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix syntax error in nested routing example 2797/head
authorGareth T <garetht@users.noreply.github.com>
Tue, 24 Dec 2019 12:30:35 +0000 (07:30 -0500)
committerGitHub <noreply@github.com>
Tue, 24 Dec 2019 12:30:35 +0000 (07:30 -0500)
tornado/routing.py

index e137a7284677fabbee658d1ef806da073c59608f..f8f94e852176871e9d0cba8a0b581a70cf60557b 100644 (file)
@@ -142,7 +142,7 @@ Of course a nested `RuleRouter` or a `~.web.Application` is allowed:
 
     router = RuleRouter([
         Rule(HostMatches("example.com"), RuleRouter([
-            Rule(PathMatches("/app1/.*"), Application([(r"/app1/handler", Handler)]))),
+            Rule(PathMatches("/app1/.*"), Application([(r"/app1/handler", Handler)])),
         ]))
     ])