Skip to content

Commit

Permalink
Merge pull request #19 from hfaran/dev
Browse files Browse the repository at this point in the history
Remove duplicate routes
  • Loading branch information
hfaran committed Feb 16, 2014
2 parents 5ed1551 + 0c91c10 commit 484ba1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tornado_json/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# Alternatively, just put the version in a text file or something to avoid
# this.

__version__ = '0.10'
__version__ = '0.11'
4 changes: 2 additions & 2 deletions tornado_json/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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:
Expand Down

0 comments on commit 484ba1c

Please sign in to comment.