mirror of
https://github.com/JoelBender/bacpypes
synced 2025-09-28 22:15:23 +08:00
make this work with py25 for rudimentary testing
This commit is contained in:
parent
a0a7c385dc
commit
b8e7b54b84
|
@ -22,13 +22,12 @@ _log = ModuleLogger(globals())
|
|||
#
|
||||
|
||||
def something_changed(thing, old_value, new_value):
|
||||
print("{} changed from {} to {}".format(thing, old_value, new_value))
|
||||
print("%r changed from %r to %r" % (thing, old_value, new_value))
|
||||
|
||||
#
|
||||
# SampleEventDetection
|
||||
#
|
||||
|
||||
@bacpypes_debugging
|
||||
class SampleEventDetection(DetectionAlgorithm):
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
|
@ -64,6 +63,8 @@ class SampleEventDetection(DetectionAlgorithm):
|
|||
else:
|
||||
if _debug: SampleEventDetection._debug(" - parameter mismatch")
|
||||
|
||||
bacpypes_debugging(SampleEventDetection)
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue
Block a user