From 8fd4aa9fab566c211a3df64a88fc7aec21eaa63f Mon Sep 17 00:00:00 2001 From: Vitalie Maldur Date: Sat, 23 Jul 2016 19:25:14 +0200 Subject: [PATCH] Fix for (#976): refactor docs for receive_json method --- docs/client_reference.rst | 5 ++--- docs/web_reference.rst | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/client_reference.rst b/docs/client_reference.rst index 172042ed7cf..bb7e69f2dea 100644 --- a/docs/client_reference.rst +++ b/docs/client_reference.rst @@ -1322,9 +1322,8 @@ manually. .. coroutinemethod:: receive_json(*, loads=json.loads) - A :ref:`coroutine` that calls :meth:`receive`, asserts the - message type is :const:`~aiohttp.websocket.MSG_TEXT`, and loads the JSON - string to a Python dict. + A :ref:`coroutine` that calls :meth:`receive_str` and loads + the JSON string to a Python dict. :param callable loads: any :term:`callable` that accepts :class:`str` and returns :class:`dict` diff --git a/docs/web_reference.rst b/docs/web_reference.rst index 8b9fa6da275..c6eea277f12 100644 --- a/docs/web_reference.rst +++ b/docs/web_reference.rst @@ -899,9 +899,8 @@ WebSocketResponse .. coroutinemethod:: receive_json(*, loads=json.loads) - A :ref:`coroutine` that calls :meth:`receive`, asserts the - message type is :const:`~aiohttp.websocket.MSG_TEXT`, and loads the JSON - string to a Python dict. + A :ref:`coroutine` that calls :meth:`receive_str` and loads the + JSON string to a Python dict. :param callable loads: any :term:`callable` that accepts :class:`str` and returns :class:`dict`