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:
Pablo Hoffman 2009-09-02 20:53:55 -03:00
parent 37929f42b3
commit 51eb641fc7
1 changed files with 4 additions and 5 deletions

View File

@ -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)