提交 51eb641f 编写于 作者: P Pablo Hoffman

fix bug in scrapy shell which was hiding the objects fetch/view/shelp when...

fix bug in scrapy shell which was hiding the objects fetch/view/shelp when started without a url as argument
上级 37929f42
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册