Remove deprecated JSONRequest

This commit is contained in:
Laerte Pereira 2023-10-17 18:15:20 -03:00
parent 83f500a352
commit 85c57778b5
2 changed files with 1 additions and 5 deletions

View File

@ -200,7 +200,7 @@ class Request(object_ref):
``ignore_unknown_options=False``.
.. caution:: Using :meth:`from_curl` from :class:`~scrapy.http.Request`
subclasses, such as :class:`~scrapy.http.JSONRequest`, or
subclasses, such as :class:`~scrapy.http.JsonRequest`, or
:class:`~scrapy.http.XmlRpcRequest`, as well as having
:ref:`downloader middlewares <topics-downloader-middleware>`
and

View File

@ -11,7 +11,6 @@ import warnings
from typing import Optional, Tuple
from scrapy.http.request import Request
from scrapy.utils.deprecate import create_deprecated_class
class JsonRequest(Request):
@ -58,6 +57,3 @@ class JsonRequest(Request):
def _dumps(self, data: dict) -> str:
"""Convert to JSON"""
return json.dumps(data, **self._dumps_kwargs)
JSONRequest = create_deprecated_class("JSONRequest", JsonRequest)