gentoo-ebuilds/media-sound/rhythmbox/files/rhythmbox-3.4.7-python3.12.patch
Pacho Ramos e50e5e28a5
media-sound/rhythmbox: Multiple bugfixes
Cherry picks from upstream master to fix implicit declarations,
libxml2 and python 3.12 compat issues.

Closes: https://bugs.gentoo.org/898926
Closes: https://bugs.gentoo.org/929668
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
2024-05-18 10:47:26 +02:00

30 lines
914 B
Diff

From: Jonathan Matthew <jonathan@d14n.org>
Date: Mon, 4 Dec 2023 08:15:19 +1000
Subject: artsearch: fix regex strings so python 3.12 stops complaining
(cherry picked from commit ceeed5736c3e25d33fec5a100afde20ef485e07e)
Origin: upstream, after 3.4.7
---
plugins/artsearch/lastfm.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/plugins/artsearch/lastfm.py b/plugins/artsearch/lastfm.py
index 0409105..82d5eeb 100644
--- a/plugins/artsearch/lastfm.py
+++ b/plugins/artsearch/lastfm.py
@@ -49,10 +49,10 @@ API_URL = 'https://ws.audioscrobbler.com/2.0/'
# LASTFM_TOOLTIP = (LASTFM_LOGO, _("Image provided by Last.fm"))
DISC_NUMBER_REGEXS = (
- "\(disc *[0-9]+\)",
- "\(cd *[0-9]+\)",
- "\[disc *[0-9]+\]",
- "\[cd *[0-9]+\]",
+ "\\(disc *[0-9]+\\)",
+ "\\(cd *[0-9]+\\)",
+ "\\[disc *[0-9]+\\]",
+ "\\[cd *[0-9]+\\]",
" - disc *[0-9]+$",
" - cd *[0-9]+$",
" disc *[0-9]+$",