Scrapy, a fast high-level web crawling & scraping framework for Python.
fixed scrapy.utils.gz.gunzip() broken after changes from Python 2.7.3 to 2.7.4
Pablo Hoffman4dc76e7cca5a
diff --git a/requirements.txt b/requirements.txtnew file mode 100644index 000000000..3605e94a7--- /dev/null+++ b/requirements.txt@@ -0,0 +1,5 @@+Twisted>=8.0+w3lib>=1.2+queuelib+lxml+pyOpenSSLdiff --git a/scrapy/utils/gz.py b/scrapy/utils/gz.pyindex 7fe82ed39..aa8ffc6fc 100644--- a/scrapy/utils/gz.py+++ b/scrapy/utils/gz.py@@ -14,7 +14,7 @@ def gunzip(data):try:chunk = f.read(8196)output += chunk- except (IOError, struct.error):+ except (IOError, EOFError, struct.error):# complete only if there is some data, otherwise re-raise# see issue 87 about catching struct.error# some pages are quite small so output is '' and f.extrabuf