mirror of https://github.com/scrapy/scrapy.git
scrapy.utils.python: fixed bug introduced when adding support for new IPython 0.11. refs #335
This commit is contained in:
parent
061132ce88
commit
415933a1f6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue