From 51eb641fc772c1fb5d4719561ce7e72936a162be Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Wed, 2 Sep 2009 20:53:55 -0300 Subject: [PATCH] fix bug in scrapy shell which was hiding the objects fetch/view/shelp when started without a url as argument --- scrapy/shell.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scrapy/shell.py b/scrapy/shell.py index df687a762..3607f5c2c 100644 --- a/scrapy/shell.py +++ b/scrapy/shell.py @@ -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)