Skip to content

Commit

Permalink
Update docstring in RequestHandler.prepare()
Browse files Browse the repository at this point in the history
  • Loading branch information
pawciobiel authored Oct 21, 2024
1 parent ac0daf7 commit 1027ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tornado/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ def _unimplemented_method(self, *args: str, **kwargs: str) -> None:
def prepare(self) -> Optional[Awaitable[None]]:
"""Called at the beginning of a request before `get`/`post`/etc.
Override this method to perform common initialization regardless
of the request method.
Override this method to perform common initialization for request method.
If the request method is not in ``SUPPORTED_METHODS`` this will not be called.
Asynchronous support: Use ``async def`` or decorate this method with
`.gen.coroutine` to make it asynchronous.
Expand Down

0 comments on commit 1027ca6

Please sign in to comment.