Changed list to frozenset

This commit is contained in:
Kyle Blöm 2017-01-30 09:49:04 -08:00
parent a5c12b96f4
commit 23efba515c

View File

@ -93,7 +93,7 @@ class Sanic:
return self.route(uri, methods=frozenset({"PATCH"}), host=host) return self.route(uri, methods=frozenset({"PATCH"}), host=host)
def delete(self, uri, host=None): def delete(self, uri, host=None):
return self.route(uri, methods=["DELETE"], host=host) return self.route(uri, methods=frozenset({"DELETE"}), host=host)
def add_route(self, handler, uri, methods=frozenset({'GET'}), host=None): def add_route(self, handler, uri, methods=frozenset({'GET'}), host=None):
""" """