mirror of https://github.com/scrapy/scrapy.git
fix bug in scrapy shell which was hiding the objects fetch/view/shelp when started without a url as argument
This commit is contained in:
parent
37929f42b3
commit
51eb641fc7
|
|
@ -74,11 +74,10 @@ class Shell(object):
|
|||
self.vars['response'] = response
|
||||
self.vars['request'] = request
|
||||
self.vars['spider'] = spiders.fromurl(url)
|
||||
|
||||
if not self.nofetch:
|
||||
self.vars['fetch'] = self.fetch
|
||||
self.vars['view'] = open_in_browser
|
||||
self.vars['shelp'] = self.print_help
|
||||
if not self.nofetch:
|
||||
self.vars['fetch'] = self.fetch
|
||||
self.vars['view'] = open_in_browser
|
||||
self.vars['shelp'] = self.print_help
|
||||
|
||||
if self.update_vars:
|
||||
self.update_vars(self.vars)
|
||||
|
|
|
|||
Loading…
Reference in New Issue