Skip to content

Commit

Permalink
Add exec flag so inputsplitter handles multiline cells better.
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Apr 12, 2011
1 parent d7437b6 commit e55836e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/core/inputsplitter.py
Expand Up @@ -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
Expand Down

0 comments on commit e55836e

Please sign in to comment.