diff options
Diffstat (limited to 'media-sound/rhythmbox/files/rhythmbox-3.4.7-python3.12.patch')
-rw-r--r-- | media-sound/rhythmbox/files/rhythmbox-3.4.7-python3.12.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/media-sound/rhythmbox/files/rhythmbox-3.4.7-python3.12.patch b/media-sound/rhythmbox/files/rhythmbox-3.4.7-python3.12.patch new file mode 100644 index 000000000000..fb38b66c89d4 --- /dev/null +++ b/media-sound/rhythmbox/files/rhythmbox-3.4.7-python3.12.patch @@ -0,0 +1,30 @@ +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]+$", |