From aac4a02b4c713da59cbd8656f12fecd58f721091 2008-11-04 15:42:36 From: Ville M. Vainio Date: 2008-11-04 15:42:36 Subject: [PATCH] handle more than one line of macros in threaded shells --- diff --git a/IPython/Shell.py b/IPython/Shell.py index aaa277e..8f31694 100644 --- a/IPython/Shell.py +++ b/IPython/Shell.py @@ -385,7 +385,7 @@ class MTInteractiveShell(InteractiveShell): Modified version of code.py's runsource(), to handle threading issues. See the original for full docstring details.""" - + global KBINT # If Ctrl-C was typed, we reset the flag and return right away @@ -415,7 +415,7 @@ class MTInteractiveShell(InteractiveShell): if (self.worker_ident is None or self.worker_ident == thread.get_ident() ): InteractiveShell.runcode(self,code) - return + return False # Case 3 # Store code in queue, so the execution thread can handle it.