From 327e0b9bcf6475af920386ff27cd3a4b435c4de7 Mon Sep 17 00:00:00 2001 From: hfaran Date: Sun, 16 Feb 2014 04:45:09 -0800 Subject: [PATCH 1/2] Remove duplicate routes --- tornado_json/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tornado_json/routes.py b/tornado_json/routes.py index 65295cb..8943592 100644 --- a/tornado_json/routes.py +++ b/tornado_json/routes.py @@ -119,7 +119,7 @@ def yield_args(module, cls_name, method_name): # You better believe this is a list comprehension auto_routes = list(chain(*[ - [ + list(set([ # URL, requesthandler tuple ( "/{}/{}{}".format( @@ -136,7 +136,7 @@ def yield_args(module, cls_name, method_name): for method_name in [ "get", "put", "post", "patch", "delete", "head", "options" ] if has_method(module, k, method_name) - ] + ])) # foreach classname, pyclbr.Class in rhs for k, v in rhs.iteritems() # Only add the pair to auto_routes if: From 0c91c10e647ce7e0e99438ea8eb796f694de186c Mon Sep 17 00:00:00 2001 From: hfaran Date: Sun, 16 Feb 2014 04:45:44 -0800 Subject: [PATCH 2/2] Bump version 0.11 --- tornado_json/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado_json/__init__.py b/tornado_json/__init__.py index 594fcd2..c3f4387 100644 --- a/tornado_json/__init__.py +++ b/tornado_json/__init__.py @@ -5,4 +5,4 @@ # Alternatively, just put the version in a text file or something to avoid # this. -__version__ = '0.10' +__version__ = '0.11'