Skip to content

Commit

Permalink
Removed unused variable
Browse files Browse the repository at this point in the history
Signed-off-by: Yohanna Lisnichuk <yohanitalisnichuk@gmail.com>
  • Loading branch information
yolile committed May 19, 2020
1 parent c1c8a7a commit ca95741
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kingfisher_scrapy/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@

# https://docs.scrapy.org/en/latest/topics/extensions.html#writing-your-own-extension
class KingfisherStoreFiles:
def __init__(self, directory, stats):
def __init__(self, directory):
self.directory = directory
self.stats = stats

@classmethod
def from_crawler(cls, crawler):
directory = crawler.settings['FILES_STORE']
extension = cls(directory, crawler.stats)
extension = cls(directory)
crawler.signals.connect(extension.item_scraped, signal=signals.item_scraped)
return extension

Expand Down

0 comments on commit ca95741

Please sign in to comment.