Permalink
Browse files

Add exec flag so inputsplitter handles multiline cells better.

  • Loading branch information...
1 parent d7437b6 commit e55836ea13f138fb43e47441af8b2e08af537a19 @takluyver takluyver committed Apr 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/core/inputsplitter.py
@@ -310,7 +310,7 @@ def push(self, lines):
self._update_indent(lines)
try:
- self.code = self._compile(source)
+ self.code = self._compile(source, symbol="exec")
# Invalid syntax can produce any of a number of different errors from
# inside the compiler, so we have to catch them all. Syntax errors
# immediately produce a 'ready' block, so the invalid Python can be

0 comments on commit e55836e

Please sign in to comment.