Scrapy, a fast high-level web crawling & scraping framework for Python.
Remove Python 2 encoding header from files (#4553)
Antonio Gordillo Toledocf09af787eaf
diff --git a/docs/conf.py b/docs/conf.pyindex 813417bae..8ab38a090 100644--- a/docs/conf.py+++ b/docs/conf.py@@ -1,5 +1,3 @@-# -*- coding: utf-8 -*--## Scrapy documentation build configuration file, created by# sphinx-quickstart on Mon Nov 24 12:02:52 2008.#diff --git a/scrapy/downloadermiddlewares/ajaxcrawl.py b/scrapy/downloadermiddlewares/ajaxcrawl.pyindex ad7a81e6b..4e12a5044 100644--- a/scrapy/downloadermiddlewares/ajaxcrawl.py+++ b/scrapy/downloadermiddlewares/ajaxcrawl.py@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-import reimport loggingdiff --git a/scrapy/spiderloader.py b/scrapy/spiderloader.pyindex 63da55718..db4193430 100644--- a/scrapy/spiderloader.py+++ b/scrapy/spiderloader.py@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-import tracebackimport warningsfrom collections import defaultdictdiff --git a/scrapy/templates/project/module/items.py.tmpl b/scrapy/templates/project/module/items.py.tmplindex a12d08414..88a18331c 100644--- a/scrapy/templates/project/module/items.py.tmpl+++ b/scrapy/templates/project/module/items.py.tmpl@@ -1,5 +1,3 @@-# -*- coding: utf-8 -*--# Define here the models for your scraped items## See documentation in:diff --git a/scrapy/templates/project/module/middlewares.py.tmpl b/scrapy/templates/project/module/middlewares.py.tmplindex b3e58ff94..6490f52a7 100644--- a/scrapy/templates/project/module/middlewares.py.tmpl+++ b/scrapy/templates/project/module/middlewares.py.tmpl@@ -1,5 +1,3 @@-# -*- coding: utf-8 -*--# Define here the models for your spider middleware## See documentation in:diff --git a/scrapy/templates/project/module/pipelines.py.tmpl b/scrapy/templates/project/module/pipelines.py.tmplindex 4876526a9..ce0edd335 100644--- a/scrapy/templates/project/module/pipelines.py.tmpl+++ b/scrapy/templates/project/module/pipelines.py.tmpl@@ -1,5 +1,3 @@-# -*- coding: utf-8 -*--# Define your item pipelines here## Don't forget to add your pipeline to the ITEM_PIPELINES settingdiff --git a/scrapy/templates/project/module/settings.py.tmpl b/scrapy/templates/project/module/settings.py.tmplindex cb220eafc..a414b5fde 100644--- a/scrapy/templates/project/module/settings.py.tmpl+++ b/scrapy/templates/project/module/settings.py.tmpl@@ -1,5 +1,3 @@-# -*- coding: utf-8 -*--# Scrapy settings for $project_name project## For simplicity, this file contains only settings considered important ordiff --git a/scrapy/templates/spiders/basic.tmpl b/scrapy/templates/spiders/basic.tmplindex 1cfe9cc9d..e9112bc95 100644--- a/scrapy/templates/spiders/basic.tmpl+++ b/scrapy/templates/spiders/basic.tmpl@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-import scrapydiff --git a/scrapy/templates/spiders/crawl.tmpl b/scrapy/templates/spiders/crawl.tmplindex 878425125..356496487 100644--- a/scrapy/templates/spiders/crawl.tmpl+++ b/scrapy/templates/spiders/crawl.tmpl@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-import scrapyfrom scrapy.linkextractors import LinkExtractorfrom scrapy.spiders import CrawlSpider, Rulediff --git a/scrapy/templates/spiders/csvfeed.tmpl b/scrapy/templates/spiders/csvfeed.tmplindex c2e4bacfe..cbcbe9e2c 100644--- a/scrapy/templates/spiders/csvfeed.tmpl+++ b/scrapy/templates/spiders/csvfeed.tmpl@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-from scrapy.spiders import CSVFeedSpiderdiff --git a/scrapy/templates/spiders/xmlfeed.tmpl b/scrapy/templates/spiders/xmlfeed.tmplindex 863c9772f..5aa2aa8b0 100644--- a/scrapy/templates/spiders/xmlfeed.tmpl+++ b/scrapy/templates/spiders/xmlfeed.tmpl@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-from scrapy.spiders import XMLFeedSpiderdiff --git a/scrapy/utils/log.py b/scrapy/utils/log.pyindex 5998dc33b..203842fc8 100644--- a/scrapy/utils/log.py+++ b/scrapy/utils/log.py@@ -1,5 +1,3 @@-# -*- coding: utf-8 -*--import loggingimport sysimport warningsdiff --git a/scrapy/utils/ssl.py b/scrapy/utils/ssl.pyindex 6e81b33ff..c3c5e329b 100644--- a/scrapy/utils/ssl.py+++ b/scrapy/utils/ssl.py@@ -1,5 +1,3 @@-# -*- coding: utf-8 -*--import OpenSSLimport OpenSSL._util as pyOpenSSLutildiff --git a/tests/test_downloadermiddleware_redirect.py b/tests/test_downloadermiddleware_redirect.pyindex 551e124ab..61c9eddbc 100644--- a/tests/test_downloadermiddleware_redirect.py+++ b/tests/test_downloadermiddleware_redirect.py@@ -1,5 +1,3 @@-# -*- coding: utf-8 -*--import unittestfrom scrapy.downloadermiddlewares.redirect import RedirectMiddleware, MetaRefreshMiddlewarediff --git a/tests/test_downloadermiddleware_robotstxt.py b/tests/test_downloadermiddleware_robotstxt.pyindex a1645ed96..b9452a0e7 100644--- a/tests/test_downloadermiddleware_robotstxt.py+++ b/tests/test_downloadermiddleware_robotstxt.py@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-from unittest import mockfrom twisted.internet import reactor, errordiff --git a/tests/test_http_response.py b/tests/test_http_response.pyindex 522ec4875..43d6d936a 100644--- a/tests/test_http_response.py+++ b/tests/test_http_response.py@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-import unittestfrom w3lib.encoding import resolve_encodingdiff --git a/tests/test_pipeline_crawl.py b/tests/test_pipeline_crawl.pyindex 24c516473..e2578a9c9 100644--- a/tests/test_pipeline_crawl.py+++ b/tests/test_pipeline_crawl.py@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-import osimport shutildiff --git a/tests/test_responsetypes.py b/tests/test_responsetypes.pyindex 8cdf7a176..9e63ac924 100644--- a/tests/test_responsetypes.py+++ b/tests/test_responsetypes.py@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-import unittestfrom scrapy.responsetypes import responsetypesdiff --git a/tests/test_utils_deprecate.py b/tests/test_utils_deprecate.pyindex b17e17f2f..adef66c1d 100644--- a/tests/test_utils_deprecate.py+++ b/tests/test_utils_deprecate.py@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-import inspectimport unittestfrom unittest import mockdiff --git a/tests/test_utils_iterators.py b/tests/test_utils_iterators.pyindex 46aaaecbc..69339256e 100644--- a/tests/test_utils_iterators.py+++ b/tests/test_utils_iterators.py@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-import osfrom twisted.trial import unittestdiff --git a/tests/test_utils_log.py b/tests/test_utils_log.pyindex 21100aeb8..25cd904bc 100644--- a/tests/test_utils_log.py+++ b/tests/test_utils_log.py@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-import sysimport loggingimport unittestdiff --git a/tests/test_utils_url.py b/tests/test_utils_url.pyindex 1f8388957..16e7449c9 100644--- a/tests/test_utils_url.py+++ b/tests/test_utils_url.py@@ -1,4 +1,3 @@-# -*- coding: utf-8 -*-import unittestfrom scrapy.spiders import Spider