Skip to content

Commit

Permalink
Merge pull request #2401 from iamgodot/doc
Browse files Browse the repository at this point in the history
Fix application code in routing doc
  • Loading branch information
davidism authored Apr 27, 2022
2 parents 53ba5f8 + 0535fff commit 7b38026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Here is a simple example which could be the URL definition for a blog::
except HTTPException, e:
return e(environ, start_response)
start_response('200 OK', [('Content-Type', 'text/plain')])
return [f'Rule points to {endpoint!r} with arguments {args!r}']
return [f'Rule points to {endpoint!r} with arguments {args!r}'.encode()]

So what does that do? First of all we create a new :class:`Map` which stores
a bunch of URL rules. Then we pass it a list of :class:`Rule` objects.
Expand Down

0 comments on commit 7b38026

Please sign in to comment.