From f66d9bf38b23dd0789e7802526bca23ba772b422 Mon Sep 17 00:00:00 2001 From: martynia Date: Mon, 6 Nov 2023 10:59:16 +0100 Subject: [PATCH] fix: fix Timer import for python3 versions < 3.3 --- Pilot/pilotTools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pilot/pilotTools.py b/Pilot/pilotTools.py index 085f77e3..537976b8 100644 --- a/Pilot/pilotTools.py +++ b/Pilot/pilotTools.py @@ -53,8 +53,8 @@ except NameError: FileNotFoundError = OSError -# Timer 2.7 issue where Timer is a function -if sys.version_info.major == 2: +# Timer 2.7 and < 3.3 versions issue where Timer is a function +if sys.version_info.major == 2 or sys.version_info.major == 3 and sys.version_info.minor < 3: from threading import _Timer as Timer # pylint: disable=no-name-in-module else: from threading import Timer