mirror of
https://github.com/JoelBender/bacpypes
synced 2025-09-28 22:15:23 +08:00
minor changes to allow these to continue to work in py25
This commit is contained in:
parent
985c69dd7e
commit
37c665000a
|
@ -36,7 +36,6 @@ this_console = None
|
|||
# ReadPropertyApplication
|
||||
#
|
||||
|
||||
@bacpypes_debugging
|
||||
class ReadPropertyApplication(BIPSimpleApplication):
|
||||
|
||||
def __init__(self, *args):
|
||||
|
@ -87,11 +86,12 @@ class ReadPropertyApplication(BIPSimpleApplication):
|
|||
value.debug_contents(file=sys.stdout)
|
||||
sys.stdout.flush()
|
||||
|
||||
bacpypes_debugging(ReadPropertyApplication)
|
||||
|
||||
#
|
||||
# ReadPropertyConsoleCmd
|
||||
#
|
||||
|
||||
@bacpypes_debugging
|
||||
class ReadPropertyConsoleCmd(ConsoleCmd):
|
||||
|
||||
def do_read(self, args):
|
||||
|
@ -130,6 +130,8 @@ class ReadPropertyConsoleCmd(ConsoleCmd):
|
|||
except Exception, e:
|
||||
ReadPropertyConsoleCmd._exception("exception: %r", e)
|
||||
|
||||
bacpypes_debugging(ReadPropertyConsoleCmd)
|
||||
|
||||
#
|
||||
# __main__
|
||||
#
|
||||
|
|
|
@ -29,7 +29,6 @@ this_application = None
|
|||
# SampleApplication
|
||||
#
|
||||
|
||||
@bacpypes_debugging
|
||||
class SampleApplication(BIPSimpleApplication):
|
||||
|
||||
def __init__(self, device, address):
|
||||
|
@ -52,6 +51,8 @@ class SampleApplication(BIPSimpleApplication):
|
|||
if _debug: SampleApplication._debug("confirmation %r", apdu)
|
||||
BIPSimpleApplication.confirmation(self, apdu)
|
||||
|
||||
bacpypes_debugging(SampleApplication)
|
||||
|
||||
#
|
||||
# __main__
|
||||
#
|
||||
|
|
|
@ -29,7 +29,6 @@ this_console = None
|
|||
# SampleApplication
|
||||
#
|
||||
|
||||
@bacpypes_debugging
|
||||
class SampleApplication(BIPSimpleApplication):
|
||||
|
||||
def __init__(self, device, address):
|
||||
|
@ -52,11 +51,12 @@ class SampleApplication(BIPSimpleApplication):
|
|||
if _debug: SampleApplication._debug("confirmation %r", apdu)
|
||||
BIPSimpleApplication.confirmation(self, apdu)
|
||||
|
||||
bacpypes_debugging(SampleApplication)
|
||||
|
||||
#
|
||||
# SampleConsoleCmd
|
||||
#
|
||||
|
||||
@bacpypes_debugging
|
||||
class SampleConsoleCmd(ConsoleCmd):
|
||||
|
||||
def do_nothing(self, args):
|
||||
|
@ -64,6 +64,8 @@ class SampleConsoleCmd(ConsoleCmd):
|
|||
args = args.split()
|
||||
if _debug: SampleConsoleCmd._debug("do_nothing %r", args)
|
||||
|
||||
bacpypes_debugging(SampleConsoleCmd)
|
||||
|
||||
#
|
||||
# __main__
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue
Block a user