anki: fix use of deprecated method removed in python 3.9
Closes: #33287 [via git-merge-pr]
This commit is contained in:
parent
f90bf3185e
commit
c6cd5cd83d
2 changed files with 12 additions and 1 deletions
11
srcpkgs/anki/patches/fix_unescape.patch
Normal file
11
srcpkgs/anki/patches/fix_unescape.patch
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue