Fix compile error on older Python3 versions

This commit is contained in:
2020-04-13 09:19:17 +02:00
parent 5099f255d6
commit 7c646e9770

View File

@@ -175,11 +175,11 @@ class RevPiSlave(Thread):
proginit.logger.debug("leave RevPiSlave.stop()")
@property
def watchdog(self) -> bool:
def watchdog(self):
return self._watchdog
@watchdog.setter
def watchdog(self, value: bool):
def watchdog(self, value):
self._watchdog = value
for th in self._th_dev: # type: RevPiSlaveDev
th.watchdog = value
@@ -192,7 +192,7 @@ class RevPiSlaveDev(Thread):
Netzwerk mit dem Prozessabbild auszutauschen.
"""
def __init__(self, devcon, acl, watchdog: bool):
def __init__(self, devcon, acl, watchdog):
"""Init RevPiSlaveDev-Class.
@param devcon Tuple der Verbindung