From 25d1e759cb41b8f39d142da7dd57c4cc9ec9d83c 2023-03-01 03:17:17 From: Emilio Graff <1@emil.io> Date: 2023-03-01 03:17:17 Subject: [PATCH] Revert "Add debug statements to observe loop" This reverts commit aa5888880cae745481f8c6996b3bf90609d8014c. --- diff --git a/IPython/terminal/pt_inputhooks/qt.py b/IPython/terminal/pt_inputhooks/qt.py index 1af01d5..cf6d11e 100644 --- a/IPython/terminal/pt_inputhooks/qt.py +++ b/IPython/terminal/pt_inputhooks/qt.py @@ -20,9 +20,6 @@ def _reclaim_excepthook(): sys.excepthook = shell.excepthook -announced = 0 - - def inputhook(context): global _appref app = QtCore.QCoreApplication.instance() @@ -60,15 +57,6 @@ def inputhook(context): event_loop = QtCore.QEventLoop(app) - global announced - if announced == 0: - print(f"`inputhook` running Qt {QtCore.qVersion()} event loop.") - announced += 1 - elif announced == 10: - announced = 0 - else: - announced += 1 - if sys.platform == 'win32': # The QSocketNotifier method doesn't appear to work on Windows. # Use polling instead.