Changed list to frozenset

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

View File

@ -94,7 +94,7 @@ class Sanic:
return self.route(uri, methods=frozenset({"PATCH"}), host=host)
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):
"""