Merge pull request #5547 from Laerte/master

Deprecate the `scrapy.downloadermiddlewares.decompression` module
This commit is contained in:
Mikhail Korobov 2022-07-05 12:44:25 +05:00 committed by GitHub
commit 49942026d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
from warnings import warn
from scrapy.exceptions import ScrapyDeprecationWarning
from scrapy.responsetypes import responsetypes
warn(
'scrapy.downloadermiddlewares.decompression is deprecated',
ScrapyDeprecationWarning,
stacklevel=2,
)
logger = logging.getLogger(__name__)