Scrapy, a fast high-level web crawling & scraping framework for Python.
scrapy.utils.python: fixed bug introduced when adding support for new IPython 0.11. refs #335
Pablo Hoffman09af0866c7aa
diff --git a/scrapy/utils/console.py b/scrapy/utils/console.pyindex 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 ImportErrorimport IPythontry:- 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 codetry: # readline module is only available on unix systems