From d872152cc8b89df8366d112fa55ef34d88681cb1 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 20 Mar 2021 17:23:35 +0100 Subject: [PATCH] restore python 3.5 compatibility --- owrx/source/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/owrx/source/__init__.py b/owrx/source/__init__.py index af96f27..ef9f4e4 100644 --- a/owrx/source/__init__.py +++ b/owrx/source/__init__.py @@ -17,7 +17,7 @@ from owrx.form.converter import OptionalConverter from owrx.form.device import GainInput, SchedulerInput, WaterfallLevelsInput from owrx.controllers.settings import Section from typing import List -from enum import Enum, auto +from enum import Enum import logging @@ -36,14 +36,14 @@ class SdrSourceState(Enum): class SdrBusyState(Enum): - IDLE = auto() - BUSY = auto() + IDLE = 1 + BUSY = 2 class SdrClientClass(Enum): - INACTIVE = auto() - BACKGROUND = auto() - USER = auto() + INACTIVE = 1 + BACKGROUND = 2 + USER = 3 class SdrSourceEventClient(object):