From e55836ea13f138fb43e47441af8b2e08af537a19 2011-04-12 16:10:30 From: Thomas Kluyver Date: 2011-04-12 16:10:30 Subject: [PATCH] Add exec flag so inputsplitter handles multiline cells better. --- diff --git a/IPython/core/inputsplitter.py b/IPython/core/inputsplitter.py index 5db6835..640465d 100644 --- a/IPython/core/inputsplitter.py +++ b/IPython/core/inputsplitter.py @@ -310,7 +310,7 @@ class InputSplitter(object): 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