mirror of https://github.com/scrapy/scrapy.git
Fix the item exporter example (#4022)
This commit is contained in:
parent
0b52fa6ca9
commit
9b65f9aa5b
|
|
@ -51,7 +51,6 @@ value of one of their fields::
|
|||
def close_spider(self, spider):
|
||||
for exporter in self.year_to_exporter.values():
|
||||
exporter.finish_exporting()
|
||||
exporter.file.close()
|
||||
|
||||
def _exporter_for_item(self, item):
|
||||
year = item['year']
|
||||
|
|
|
|||
Loading…
Reference in New Issue