From 1d6cc257ea06c0937be9aba12fc8dae38253ca52 Mon Sep 17 00:00:00 2001 From: Alexey Bezhan Date: Thu, 17 Apr 2014 14:18:32 +0100 Subject: [PATCH] Fix PEP8 warnings in project template files --- scrapy/templates/project/module/items.py.tmpl | 1 + scrapy/templates/project/module/pipelines.py.tmpl | 1 + 2 files changed, 2 insertions(+) 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