Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd48ab05

Browse files
authored
Merge pull request#16320 from meeseeksmachine/auto-backport-of-pr-16311-on-v3.1.x
Backport PR#16311 on branch v3.1.x (don't override non-Python signal handlers)
2 parentsd10aacf +df0e01e commitd48ab05

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎lib/matplotlib/backends/backend_qt5.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,9 +1091,11 @@ def trigger_manager_draw(manager):
10911091
defmainloop():
10921092
old_signal=signal.getsignal(signal.SIGINT)
10931093
# allow SIGINT exceptions to close the plot window.
1094-
signal.signal(signal.SIGINT,signal.SIG_DFL)
1094+
ifold_signal:
1095+
signal.signal(signal.SIGINT,signal.SIG_DFL)
10951096
try:
10961097
qApp.exec_()
10971098
finally:
10981099
# reset the SIGINT exception handler
1099-
signal.signal(signal.SIGINT,old_signal)
1100+
ifold_signal:
1101+
signal.signal(signal.SIGINT,old_signal)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp