From 740dfb72e22963715e3df9ac3b67dc18c8bcceff Mon Sep 17 00:00:00 2001 From: buddsean Date: Tue, 15 Jun 2021 10:21:19 +1000 Subject: [PATCH] use BACK_COMPAT_TO --- source/controlTypes/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/controlTypes/__init__.py b/source/controlTypes/__init__.py index 09376b9eb0b..e3893b93371 100644 --- a/source/controlTypes/__init__.py +++ b/source/controlTypes/__init__.py @@ -3,7 +3,7 @@ # See the file COPYING for more details. # Copyright (C) 2007-2021 NV Access Limited, Babbage B.V. -from buildVersion import version_year +from addonAPIVersion import BACK_COMPAT_TO # imports used in __all__ from .isCurrent import IsCurrent @@ -29,13 +29,13 @@ # Added to maintain backwards compatibility, marked for deprecation to be removed in 2022.1 # usages to be replaced by Role.*.displayString and State.*.displayString -if version_year < 2022: +if BACK_COMPAT_TO[0] < 2022: roleLabels = _roleLabels stateLabels = _stateLabels # Added to maintain backwards compatibility, marked for deprecation to be removed in 2022.1 -if version_year < 2022: +if BACK_COMPAT_TO[0] < 2022: ROLE_UNKNOWN = Role.UNKNOWN ROLE_WINDOW = Role.WINDOW ROLE_TITLEBAR = Role.TITLEBAR @@ -190,7 +190,7 @@ # Added to maintain backwards compatibility, marked for deprecation to be removed in 2022.1 -if version_year < 2022: +if BACK_COMPAT_TO[0] < 2022: STATE_UNAVAILABLE = State.UNAVAILABLE STATE_FOCUSED = State.FOCUSED STATE_SELECTED = State.SELECTED