From 415933a1f6b68d6deba825a3c16c8b43085a4abc Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Tue, 9 Aug 2011 01:38:31 -0300 Subject: [PATCH] scrapy.utils.python: fixed bug introduced when adding support for new IPython 0.11. refs #335 --- scrapy/utils/console.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapy/utils/console.py b/scrapy/utils/console.py index c376ed059..1c4449b85 100644 --- a/scrapy/utils/console.py +++ b/scrapy/utils/console.py @@ -12,10 +12,10 @@ def start_python_console(namespace=None, noipython=False): raise ImportError import IPython try: - shell = IPython.embed(user_ns=namespace) + IPython.embed(user_ns=namespace) except AttributeError: shell = IPython.Shell.IPShellEmbed(argv=[], user_ns=namespace) - shell() + shell() except ImportError: import code try: # readline module is only available on unix systems