diff -Nru anki-2.1.15+dfsg/debian/changelog anki-2.1.15+dfsg/debian/changelog --- anki-2.1.15+dfsg/debian/changelog 2020-12-08 21:13:39.000000000 +0100 +++ anki-2.1.15+dfsg/debian/changelog 2023-01-28 21:22:07.000000000 +0100 @@ -1,3 +1,9 @@ +anki (2.1.15+dfsg-3jammy) jammy-proposed; urgency=medium + + * cast to int to fix problem with python 3.10 being stricter + + -- Rolf Leggewie Sat, 28 Jan 2023 21:22:07 +0100 + anki (2.1.15+dfsg-3) unstable; urgency=medium * Fix html.parser.HTMLParser().unescape() -> html.parser.unescape() for diff -Nru anki-2.1.15+dfsg/debian/control anki-2.1.15+dfsg/debian/control --- anki-2.1.15+dfsg/debian/control 2020-12-08 21:13:39.000000000 +0100 +++ anki-2.1.15+dfsg/debian/control 2023-01-28 21:22:07.000000000 +0100 @@ -1,5 +1,6 @@ Source: anki -Maintainer: Julian Gilbey +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Julian Gilbey Section: education Priority: optional Build-Depends-Indep: debhelper (>= 11), python3, dh-python diff -Nru anki-2.1.15+dfsg/debian/patches/fix-stricter-type-checking-in-python3.10.patch anki-2.1.15+dfsg/debian/patches/fix-stricter-type-checking-in-python3.10.patch --- anki-2.1.15+dfsg/debian/patches/fix-stricter-type-checking-in-python3.10.patch 1970-01-01 01:00:00.000000000 +0100 +++ anki-2.1.15+dfsg/debian/patches/fix-stricter-type-checking-in-python3.10.patch 2023-01-28 21:22:07.000000000 +0100 @@ -0,0 +1,48 @@ +Description: fix code for stricter type checking in python 3.10 + cast function call values to int to fix problem with python + 3.10 being stricter with variable typing +Author: Rolf Leggewie +Forwarded: no, does not apply to latest upstream +Bug-Ubuntu: https://launchpad.net/bugs/2004098 +Last-Update: 2023-01-29 + +--- anki-2.1.15+dfsg.orig/aqt/deckconf.py ++++ anki-2.1.15+dfsg/aqt/deckconf.py +@@ -172,7 +172,7 @@ class DeckConf(QDialog): + f.lrnGradInt.setValue(c['ints'][0]) + f.lrnEasyInt.setValue(c['ints'][1]) + f.lrnEasyInt.setValue(c['ints'][1]) +- f.lrnFactor.setValue(c['initialFactor']/10.0) ++ f.lrnFactor.setValue(int(c['initialFactor']/10.0)) + f.newOrder.setCurrentIndex(c['order']) + f.newPerDay.setValue(c['perDay']) + f.bury.setChecked(c.get("bury", True)) +@@ -180,7 +180,7 @@ class DeckConf(QDialog): + # rev + c = self.conf['rev'] + f.revPerDay.setValue(c['perDay']) +- f.easyBonus.setValue(c['ease4']*100) ++ f.easyBonus.setValue(int(c['ease4']*100)) + f.fi1.setValue(c['ivlFct']*100) + f.maxIvl.setValue(c['maxIvl']) + f.revplim.setText(self.parentLimText('rev')) +@@ -192,7 +192,7 @@ class DeckConf(QDialog): + # lapse + c = self.conf['lapse'] + f.lapSteps.setText(self.listToUser(c['delays'])) +- f.lapMult.setValue(c['mult']*100) ++ f.lapMult.setValue(int(c['mult']*100)) + f.lapMinInt.setValue(c['minInt']) + f.leechThreshold.setValue(c['leechFails']) + f.leechAction.setCurrentIndex(c['leechAction']) +--- anki-2.1.15+dfsg.orig/aqt/preferences.py ++++ anki-2.1.15+dfsg/aqt/preferences.py +@@ -77,7 +77,7 @@ class Preferences(QDialog): + f.hwAccel.setVisible(False) + else: + f.hwAccel.setChecked(self.mw.pm.glMode() != "software") +- f.lrnCutoff.setValue(qc['collapseTime']/60.0) ++ f.lrnCutoff.setValue(int(qc['collapseTime']/60.0)) + f.timeLimit.setValue(qc['timeLim']/60.0) + f.showEstimates.setChecked(qc['estTimes']) + f.showProgress.setChecked(qc['dueCounts']) diff -Nru anki-2.1.15+dfsg/debian/patches/series anki-2.1.15+dfsg/debian/patches/series --- anki-2.1.15+dfsg/debian/patches/series 2020-12-08 21:13:39.000000000 +0100 +++ anki-2.1.15+dfsg/debian/patches/series 2023-01-28 21:22:07.000000000 +0100 @@ -4,3 +4,4 @@ uninline-javascript fix-mpv-args.patch fix-html-unescape.patch +fix-stricter-type-checking-in-python3.10.patch