chore: Deprecate the `scrapy.downloadermiddlewares.decompression` module

This commit is contained in:
Laerte Pereira 2022-06-30 10:42:01 -03:00
parent b51b52ff37
commit c4c816624f
No known key found for this signature in database
GPG Key ID: BB69B5C731BB8A80
1 changed files with 9 additions and 0 deletions

View File

@ -9,10 +9,19 @@ import tarfile
import zipfile
from io import BytesIO
from tempfile import mktemp
import warnings
from scrapy.exceptions import ScrapyDeprecationWarning
from scrapy.responsetypes import responsetypes
warnings.warn(
'scrapy.downloadermiddlewares.decompression is deprecated',
ScrapyDeprecationWarning,
stacklevel=2,
)
logger = logging.getLogger(__name__)