Scrapy, a fast high-level web crawling & scraping framework for Python.
Merge remote-tracking branch 'upstream/master' into remove-six-code
Eugenio Lacuesta714e0d3ac98f
diff --cc pytest.iniindex 4f2548db2,7be5d8572..03fcdda5b--- a/pytest.ini+++ b/pytest.ini@@@ -226,10 -214,9 +214,10 @@@ flake8-ignoretests/test_pipeline_files.py F401 E501 W293 E303 E272 E226tests/test_pipeline_images.py F401 F841 E501 E303tests/test_pipeline_media.py E501 E741 E731 E128 E261 E306 E502+ tests/test_proxy_connect.py E501 E741tests/test_request_cb_kwargs.py E501- tests/test_responsetypes.py E501 E302 E305- tests/test_robotstxt_interface.py F401 E302 E501 W291 E501+ tests/test_responsetypes.py E501 E305+ tests/test_robotstxt_interface.py F401 E501 W291 E501tests/test_scheduler.py E501 E126 E123tests/test_selector.py F401 E501 E127tests/test_spider.py E501 F401diff --cc scrapy/commands/list.pyindex 60686f109,422183ac1..54d7bb228--- a/scrapy/commands/list.py+++ b/scrapy/commands/list.py@@@ -1,5 -1,7 +1,6 @@@-from __future__ import print_functionfrom scrapy.commands import ScrapyCommand+class Command(ScrapyCommand):requires_project = Truediff --cc scrapy/downloadermiddlewares/ajaxcrawl.pyindex c618e9ffc,ba50793bb..7a140fcad--- a/scrapy/downloadermiddlewares/ajaxcrawl.py+++ b/scrapy/downloadermiddlewares/ajaxcrawl.py@@@ -65,7 -67,9 +65,9 @@@ class AjaxCrawlMiddleware(object)# XXX: move it to w3lib?-_ajax_crawlable_re = re.compile(six.u(r'<meta\s+name=["\']fragment["\']\s+content=["\']!["\']/?>'))+_ajax_crawlable_re = re.compile(r'<meta\s+name=["\']fragment["\']\s+content=["\']!["\']/?>')++def _has_ajaxcrawlable_meta(text):""">>> _has_ajaxcrawlable_meta('<html><head><meta name="fragment" content="!"/></head><body></body></html>')diff --cc scrapy/utils/engine.pyindex 36ef8626a,2c20b5c88..534d961ea--- a/scrapy/utils/engine.py+++ b/scrapy/utils/engine.py@@@ -1,7 -1,9 +1,8 @@@"""Some debugging functions for working with the Scrapy engine"""-from __future__ import print_functionfrom time import time # used in global tests code+def get_engine_status(engine):"""Return a report of the current engine status"""tests = [diff --cc scrapy/utils/python.pyindex b00d0aae7,138e86d37..8d829c5a5--- a/scrapy/utils/python.py+++ b/scrapy/utils/python.py@@@ -161,9 -162,10 +161,10 @@@ def memoizemethod_noargs(method)return new_method-_BINARYCHARS = {six.b(chr(i)) for i in range(32)} - {b"\0", b"\t", b"\n", b"\r"}+_BINARYCHARS = {to_bytes(chr(i)) for i in range(32)} - {b"\0", b"\t", b"\n", b"\r"}_BINARYCHARS |= {ord(ch) for ch in _BINARYCHARS}+@deprecated("scrapy.utils.python.binary_is_text")def isbinarytext(text):""" This function is deprecated.diff --cc tests/test_utils_python.pyindex 1224c175d,76ee8f48b..b79e0ac1c--- a/tests/test_utils_python.py+++ b/tests/test_utils_python.py@@@ -1,9 -1,11 +1,10 @@@--import gcimport functools++import gcimport operator- import unittest+import platform+ import unittestfrom itertools import count-import platform-import six+ from warnings import catch_warningsfrom scrapy.utils.python import (memoizemethod_noargs, binary_is_text, equal_attributes,