anki: fix use of deprecated method removed in python 3.9

Closes: #33287 [via git-merge-pr]
This commit is contained in:
Bikutoso 2021-10-03 12:22:06 +02:00 committed by Andrew J. Hesford
parent f90bf3185e
commit c6cd5cd83d
2 changed files with 12 additions and 1 deletions

View file

@ -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

View file

@ -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