1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-23 08:44:13 +00:00

Deprecate scrapy.utils.gz.read1.

This commit is contained in:
Andrey Rakhmatullin 2019-08-20 21:06:52 +05:00
parent 0e696ed06d
commit 065fe29d3c

View File

@ -16,6 +16,7 @@ from scrapy.utils.decorators import deprecated
# (regression or bug-fix compared to Python 3.4)
# - read1(), which fetches data before raising EOFError on next call
# works here but is only available from Python>=3.3
@deprecated('GzipFile.read1')
def read1(gzf, size=-1):
return gzf.read1(size)