Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Fix PEP8 warnings in project template files

Alexey Bezhan1d6cc257ea06
diff --git a/scrapy/templates/project/module/items.py.tmpl b/scrapy/templates/project/module/items.py.tmpl
index 826c385e8..b6b4d8547 100644
--- a/scrapy/templates/project/module/items.py.tmpl
+++ b/scrapy/templates/project/module/items.py.tmpl
@@ -5,6 +5,7 @@
import scrapy
+
class ${ProjectName}Item(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
diff --git a/scrapy/templates/project/module/pipelines.py.tmpl b/scrapy/templates/project/module/pipelines.py.tmpl
index 0e6676209..69ed892bb 100644
--- a/scrapy/templates/project/module/pipelines.py.tmpl
+++ b/scrapy/templates/project/module/pipelines.py.tmpl
@@ -3,6 +3,7 @@
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
+
class ${ProjectName}Pipeline(object):
def process_item(self, item, spider):
return item