Skip to content

Commit 09af086

Browse files
committed
scrapy.utils.python: fixed bug introduced when adding support for new IPython 0.11. refs scrapy#335
1 parent 3191a08 commit 09af086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scrapy/utils/console.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ def start_python_console(namespace=None, noipython=False):
1212
raise ImportError
1313
import IPython
1414
try:
15-
shell = IPython.embed(user_ns=namespace)
15+
IPython.embed(user_ns=namespace)
1616
except AttributeError:
1717
shell = IPython.Shell.IPShellEmbed(argv=[], user_ns=namespace)
18-
shell()
18+
shell()
1919
except ImportError:
2020
import code
2121
try: # readline module is only available on unix systems

0 commit comments

Comments
 (0)