##// END OF EJS Templates
Small cleanup in Shell.py
Brian Granger -
Show More
@@ -299,12 +299,12 b' if HAS_CTYPES:'
299 299 if res == 0:
300 300 raise ValueError("invalid thread id")
301 301 elif res != 1:
302 # """if it returns a number greater than one, you're in trouble,
303 # and you should call it again with exc=NULL to revert the effect"""
302 # If it returns a number greater than one, you're in trouble,
303 # and you should call it again with exc=NULL to revert the effect
304 304 ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, 0)
305 305 raise SystemError("PyThreadState_SetAsyncExc failed")
306 306
307 def sigint_handler (signum,stack_frame):
307 def sigint_handler(signum,stack_frame):
308 308 """Sigint handler for threaded apps.
309 309
310 310 This is a horrible hack to pass information about SIGINT _without_
@@ -323,7 +323,7 b' if HAS_CTYPES:'
323 323 Term.cout.flush()
324 324
325 325 else:
326 def sigint_handler (signum,stack_frame):
326 def sigint_handler(signum,stack_frame):
327 327 """Sigint handler for threaded apps.
328 328
329 329 This is a horrible hack to pass information about SIGINT _without_
General Comments 0
You need to be logged in to leave comments. Login now