From cc869287d2c09823fb53036389c62f46bb909eba Mon Sep 17 00:00:00 2001 From: Bikutoso <10584311+Bikutoso@users.noreply.github.com> Date: Sun, 3 Oct 2021 12:22:06 +0200 Subject: [PATCH] anki: fix use of deprecated method removed in python 3.9 --- srcpkgs/anki/patches/fix_unescape.patch | 11 +++++++++++ srcpkgs/anki/template | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/anki/patches/fix_unescape.patch diff --git a/srcpkgs/anki/patches/fix_unescape.patch b/srcpkgs/anki/patches/fix_unescape.patch new file mode 100644 index 000000000000..f7024bc7bf15 --- /dev/null +++ b/srcpkgs/anki/patches/fix_unescape.patch @@ -0,0 +1,11 @@ +--- a/aqt/reviewer.py ++++ b/aqt/reviewer.py +@@ -359,7 +359,7 @@ + cor = stripHTML(cor) + # ensure we don't chomp multiple whitespace + cor = cor.replace(" ", " ") +- cor = parser.unescape(cor) ++ cor = html.unescape(cor) + cor = cor.replace("\xa0", " ") + cor = cor.strip() + given = self.typedAnswer diff --git a/srcpkgs/anki/template b/srcpkgs/anki/template index 55976fbd26eb..f2a476844717 100644 --- a/srcpkgs/anki/template +++ b/srcpkgs/anki/template @@ -1,7 +1,7 @@ # Template file for 'anki' pkgname=anki version=2.1.15 -revision=4 +revision=5 build_style=gnu-makefile depends="python3-PyQt5-webengine python3-requests python3-SQLAlchemy python3-PyAudio python3-mpv python3-Markdown python3-send2trash