restore python 3.5 compatibility

This commit is contained in:
Jakob Ketterl 2021-03-20 17:23:35 +01:00
parent 3b9763eee5
commit d872152cc8

View File

@ -17,7 +17,7 @@ from owrx.form.converter import OptionalConverter
from owrx.form.device import GainInput, SchedulerInput, WaterfallLevelsInput from owrx.form.device import GainInput, SchedulerInput, WaterfallLevelsInput
from owrx.controllers.settings import Section from owrx.controllers.settings import Section
from typing import List from typing import List
from enum import Enum, auto from enum import Enum
import logging import logging
@ -36,14 +36,14 @@ class SdrSourceState(Enum):
class SdrBusyState(Enum): class SdrBusyState(Enum):
IDLE = auto() IDLE = 1
BUSY = auto() BUSY = 2
class SdrClientClass(Enum): class SdrClientClass(Enum):
INACTIVE = auto() INACTIVE = 1
BACKGROUND = auto() BACKGROUND = 2
USER = auto() USER = 3
class SdrSourceEventClient(object): class SdrSourceEventClient(object):