From d8224b52359b539353ecbd342f99a945e17c257b 2009-04-14 20:12:02 From: Brian Granger Date: 2009-04-14 20:12:02 Subject: [PATCH] Small cleanup in Shell.py --- diff --git a/IPython/Shell.py b/IPython/Shell.py index 5fdab89..2dd9dac 100644 --- a/IPython/Shell.py +++ b/IPython/Shell.py @@ -299,12 +299,12 @@ if HAS_CTYPES: if res == 0: raise ValueError("invalid thread id") elif res != 1: - # """if it returns a number greater than one, you're in trouble, - # and you should call it again with exc=NULL to revert the effect""" + # If it returns a number greater than one, you're in trouble, + # and you should call it again with exc=NULL to revert the effect ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, 0) raise SystemError("PyThreadState_SetAsyncExc failed") - def sigint_handler (signum,stack_frame): + def sigint_handler(signum,stack_frame): """Sigint handler for threaded apps. This is a horrible hack to pass information about SIGINT _without_ @@ -323,7 +323,7 @@ if HAS_CTYPES: Term.cout.flush() else: - def sigint_handler (signum,stack_frame): + def sigint_handler(signum,stack_frame): """Sigint handler for threaded apps. This is a horrible hack to pass information about SIGINT _without_