mirror of
https://github.com/JoelBender/bacpypes
synced 2025-10-27 00:57:47 +08:00
add __lt__ function to make tasks orderable (so heappush is happy in py34), update metaclass syntax in py34 singleton
This commit is contained in:
@@ -92,6 +92,9 @@ class _Task(DebugContents, Logging):
|
||||
|
||||
_task_manager.resume_task(self)
|
||||
|
||||
def __lt__(self, other):
|
||||
return id(self) < id(other)
|
||||
|
||||
#
|
||||
# OneShotTask
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user