Revert "Merge branch 'master' of github.com:kennethreitz/responder"

This reverts commit 446deffc17, reversing
changes made to e0863115ee.
This commit is contained in:
2018-10-23 08:00:30 -04:00
parent 446deffc17
commit 950be14eca
4 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ coverage.xml
__pycache__
tests/__pycache__
*.pyc
build
responder.egg-info/
dist/
+1 -1
View File
@@ -185,7 +185,7 @@ WebSocket Support
Responder supports WebSockets::
@api.route('/ws', websocket=True)
@api.ws_route('/ws')
async def hello(ws):
await ws.accept()
await ws.send_text("Hello via websocket!")
+2 -3
View File
@@ -77,9 +77,8 @@ class Route:
def is_class_based(self):
return hasattr(self.endpoint, "__class__")
@property
def is_function(self):
is_callable = callable(self.endpoint)
routed = hasattr(self.endpoint, "is_routed")
code = hasattr(self.endpoint, "__code__")
kwdefaults = hasattr(self.endpoint, "__kwdefaults__")
return all((is_callable, code, kwdefaults))
return all((routed, code, kwdefaults))
+1 -1
View File
@@ -36,7 +36,7 @@ required = [
"python-multipart",
"chardet",
"apispec>=1.0.0b1",
"marshmallow>=3.0.0b7",
"marshmallow",
"asgiref",
"docopt",
"itsdangerous",