Skip to content

Commit 01eca3f

Browse files
committed
Fix python grammar exception in docs
1 parent 52c4e5e commit 01eca3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/web.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ The example shows custom processing based on *HTTP Accept* header::
149149
acceptor = self._accepts.get(request.headers.get('ACCEPT'))
150150
if acceptor is None:
151151
raise HTTPNotAcceptable()
152-
return yield from acceptor(request)
152+
return (yield from acceptor(request))
153153

154154
def reg_acceptor(self, accept, handler):
155155
self._accepts[accept] = handler

0 commit comments

Comments
 (0)