mirror of https://github.com/scrapy/scrapy.git
fixed spider custom_settings
https://github.com/scrapy/scrapy/pull/1128 moved spidercls.update_settings call to a later stage; this commit moves it back.
This commit is contained in:
parent
bd271d8b99
commit
f6ae78f4b1
|
|
@ -29,6 +29,7 @@ class Crawler(object):
|
|||
|
||||
self.spidercls = spidercls
|
||||
self.settings = settings.copy()
|
||||
self.spidercls.update_settings(self.settings)
|
||||
|
||||
self.signals = SignalManager(self)
|
||||
self.stats = load_object(self.settings['STATS_CLASS'])(self)
|
||||
|
|
@ -44,9 +45,7 @@ class Crawler(object):
|
|||
self.logformatter = lf_cls.from_crawler(self)
|
||||
self.extensions = ExtensionManager.from_crawler(self)
|
||||
|
||||
self.spidercls.update_settings(self.settings)
|
||||
self.settings.freeze()
|
||||
|
||||
self.crawling = False
|
||||
self.spider = None
|
||||
self.engine = None
|
||||
|
|
|
|||
Loading…
Reference in New Issue