python3-prompt_toolkit: don't handle sigint

Fixes #35712

See also: https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1576
This commit is contained in:
Gonzalo Tornaría 2022-02-21 10:52:16 -03:00 committed by Andrew J. Hesford
parent 9c6f2d0e98
commit 06984d906a
2 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,27 @@
This makes handle_sigint default to False
See:
- https://github.com/void-linux/void-packages/issues/35712
- https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1576
- https://trac.sagemath.org/ticket/33360#comment:3
--- a/prompt_toolkit/application/application.py 2022-02-11 05:06:37.000000000 -0300
+++ b/prompt_toolkit/application/application.py 2022-02-21 10:43:13.828058001 -0300
@@ -634,7 +634,7 @@
self,
pre_run: Optional[Callable[[], None]] = None,
set_exception_handler: bool = True,
- handle_sigint: bool = True,
+ handle_sigint: bool = False,
slow_callback_duration: float = 0.5,
) -> _AppResult:
"""
@@ -859,7 +859,7 @@
self,
pre_run: Optional[Callable[[], None]] = None,
set_exception_handler: bool = True,
- handle_sigint: bool = True,
+ handle_sigint: bool = False,
in_thread: bool = False,
) -> _AppResult:
"""

View File

@ -1,7 +1,7 @@
# Template file for 'python3-prompt_toolkit'
pkgname=python3-prompt_toolkit
version=3.0.28
revision=1
revision=2
wrksrc="prompt_toolkit-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"