diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-12-07 19:45:55 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-12-07 23:51:42 +0100 |
commit | 8d5b730e870a710dea0626c3c94b2c118bde8754 (patch) | |
tree | b49198bb3ab23fb63e780191c72574ffb065107b /media-sound/beets/files | |
parent | profiles: Restrict media-sound/beets package.mask to <1.4.9-r1 (diff) | |
download | gentoo-8d5b730e870a710dea0626c3c94b2c118bde8754.tar.gz gentoo-8d5b730e870a710dea0626c3c94b2c118bde8754.tar.bz2 gentoo-8d5b730e870a710dea0626c3c94b2c118bde8754.zip |
media-sound/beets: Drop python3_5 support
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-sound/beets/files')
-rw-r--r-- | media-sound/beets/files/beets-1.4.9-py37.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/media-sound/beets/files/beets-1.4.9-py37.patch b/media-sound/beets/files/beets-1.4.9-py37.patch new file mode 100644 index 000000000000..564357bc3788 --- /dev/null +++ b/media-sound/beets/files/beets-1.4.9-py37.patch @@ -0,0 +1,38 @@ +From 15d44f02a391764da1ce1f239caef819f08beed8 Mon Sep 17 00:00:00 2001 +From: Adrian Sampson <adrian@radbox.org> +Date: Sun, 22 Jul 2018 12:34:19 -0400 +Subject: [PATCH] Fix Python 3.7 compatibility (#2978) + +--- + beets/autotag/hooks.py | 8 +++++++- + docs/changelog.rst | 2 ++ + 2 files changed, 9 insertions(+), 1 deletion(-) + +diff --git a/beets/autotag/hooks.py b/beets/autotag/hooks.py +index 3615a93337b8..1c62a54c5c35 100644 +--- a/beets/autotag/hooks.py ++++ b/beets/autotag/hooks.py +@@ -31,6 +31,12 @@ import six + + log = logging.getLogger('beets') + ++# The name of the type for patterns in re changed in Python 3.7. ++try: ++ Pattern = re._pattern_type ++except AttributeError: ++ Pattern = re.Pattern ++ + + # Classes used to represent candidate options. + +@@ -433,7 +439,7 @@ class Distance(object): + be a compiled regular expression, in which case it will be + matched against `value2`. + """ +- if isinstance(value1, re._pattern_type): ++ if isinstance(value1, Pattern): + return bool(value1.match(value2)) + return value1 == value2 + +-- +2.20.1 |