From 656e435fdabf8fe999131bfaf114ef29949a4b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 29 Oct 2025 04:26:01 +0100 Subject: dev-python/bpython: Bump to 0.26 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../bpython/files/bpython-0.26-urwid-3.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 dev-python/bpython/files/bpython-0.26-urwid-3.patch (limited to 'dev-python/bpython/files/bpython-0.26-urwid-3.patch') diff --git a/dev-python/bpython/files/bpython-0.26-urwid-3.patch b/dev-python/bpython/files/bpython-0.26-urwid-3.patch new file mode 100644 index 000000000000..4a563a455877 --- /dev/null +++ b/dev-python/bpython/files/bpython-0.26-urwid-3.patch @@ -0,0 +1,36 @@ +From bbc9438a2638d60f131ede56d7c21a6f96592927 Mon Sep 17 00:00:00 2001 +From: Sebastian Ramacher +Date: Tue, 28 Oct 2025 23:12:28 +0100 +Subject: [PATCH] Fix compatibility with urwid 3.0 (fixes #1043) + +--- a/bpython/urwid.py ++++ b/bpython/urwid.py +@@ -411,7 +411,7 @@ def keypress(self, size, key): + return key + + +-class Tooltip(urwid.BoxWidget): ++class Tooltip(urwid.Widget): + """Container inspired by Overlay to position our tooltip. + + bottom_w should be a BoxWidget. +@@ -423,6 +423,9 @@ class Tooltip(urwid.BoxWidget): + from the bottom window and hides it if there is no cursor. + """ + ++ _sizing = frozenset(['box']) ++ _selectable = True ++ + def __init__(self, bottom_w, listbox): + super().__init__() + +@@ -1322,7 +1325,8 @@ def run_find_coroutine(): + + run_find_coroutine() + +- myrepl.main_loop.screen.run_wrapper(run_with_screen_before_mainloop) ++ with myrepl.main_loop.screen.start(): ++ run_with_screen_before_mainloop() + + if config.flush_output and not options.quiet: + sys.stdout.write(myrepl.getstdout()) -- cgit v1.2.3