mirror of https://github.com/scrapy/scrapy.git
Deprecate scrapy.utils.gz.read1.
This commit is contained in:
parent
de7789e52d
commit
c2898fdcf9
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue