From a377edda7e267addafc5aa24ada30a9a1b9fed07 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 6 Dec 2021 19:56:32 +1000 Subject: [PATCH] remove legacy warning on pointVersion https://forums.ankiweb.net/t/anki-2-1-50-beta/15608/30 --- pylib/anki/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pylib/anki/utils.py b/pylib/anki/utils.py index c5d0fa6e5..0b2047566 100644 --- a/pylib/anki/utils.py +++ b/pylib/anki/utils.py @@ -307,6 +307,9 @@ def point_version() -> int: return int(version.split(".")[-1]) +# keep the legacy alias around without a deprecation warning for now +pointVersion = point_version + _deprecated_names = DeprecatedNamesMixinForModule(globals()) _deprecated_names.register_deprecated_aliases( stripHTML=strip_html,