##// END OF EJS Templates
Eventloops are not created if IPY_TEST_SIMPLE_PROMPT set, or not a tty.
Matthias Bussonnier -
Show More
@@ -382,8 +382,9 b' class TerminalInteractiveShell(InteractiveShell):'
382 break
382 break
383 except KeyboardInterrupt:
383 except KeyboardInterrupt:
384 print("\nKeyboardInterrupt escaped interact()\n")
384 print("\nKeyboardInterrupt escaped interact()\n")
385
385
386 self._eventloop.close()
386 if hasattr(self, '_eventloop'):
387 self._eventloop.close()
387
388
388 _inputhook = None
389 _inputhook = None
389 def inputhook(self, context):
390 def inputhook(self, context):
General Comments 0
You need to be logged in to leave comments. Login now