aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py3/IPython/terminal/pt_inputhooks/qt.py
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2023-12-09 08:18:12 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2023-12-09 08:35:25 +0300
commit1a5ddc956c05a593cbe2d043d5f4e190602d9b98 (patch)
tree7316ec45b1d291595bc6841b8e6416c3fddf1e93 /contrib/python/ipython/py3/IPython/terminal/pt_inputhooks/qt.py
parent5f8da71fa8b7ccef2ff0900693a77069bf8b4eab (diff)
downloadydb-1a5ddc956c05a593cbe2d043d5f4e190602d9b98.tar.gz
Update contrib/python/ipython/py3 to 8.18.0
Diffstat (limited to 'contrib/python/ipython/py3/IPython/terminal/pt_inputhooks/qt.py')
-rw-r--r--contrib/python/ipython/py3/IPython/terminal/pt_inputhooks/qt.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/python/ipython/py3/IPython/terminal/pt_inputhooks/qt.py b/contrib/python/ipython/py3/IPython/terminal/pt_inputhooks/qt.py
index cf6d11ea6c..2f3f491ef9 100644
--- a/contrib/python/ipython/py3/IPython/terminal/pt_inputhooks/qt.py
+++ b/contrib/python/ipython/py3/IPython/terminal/pt_inputhooks/qt.py
@@ -84,3 +84,7 @@ def inputhook(context):
_exec(event_loop)
finally:
notifier.setEnabled(False)
+
+ # This makes sure that the event loop is garbage collected.
+ # See issue 14240.
+ event_loop.setParent(None)