From 0c44600a3a0e6a747360262309114cc42d4a1544 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 +++++++++++ 1 file changed, 11 insertions(+) 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