From f130a42ca9c60be6f6e9fb4840d74b0969076fe3 Mon Sep 17 00:00:00 2001 From: Christian Tremblay Date: Fri, 31 Jul 2015 19:21:32 -0400 Subject: [PATCH 1/2] Correct property named as in object.py line 342 is vendorIdentifier, not vendorId Signed-off-by: Christian Tremblay --- py34/bacpypes/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py34/bacpypes/app.py b/py34/bacpypes/app.py index 4710b77..9f15972 100755 --- a/py34/bacpypes/app.py +++ b/py34/bacpypes/app.py @@ -107,9 +107,9 @@ class LocalDeviceObject(DeviceObject, Logging): # check for registration if self.__class__ not in registered_object_types.values(): - if 'vendorId' not in kwargs: + if 'vendorIdentifier' not in kwargs: raise RuntimeError("vendorId required to auto-register the LocalDeviceObject class") - register_object_type(self.__class__, vendor_id=kwargs['vendorId']) + register_object_type(self.__class__, vendor_id=kwargs['vendorIdentifier']) # check for local time if 'localDate' in kwargs: From cecb6770cdb355d91ccbb0d084ea4c00424601ee Mon Sep 17 00:00:00 2001 From: Christian Tremblay Date: Fri, 31 Jul 2015 19:22:56 -0400 Subject: [PATCH 2/2] Forgotten xrange replaced by range Signed-off-by: Christian Tremblay --- py34/bacpypes/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py34/bacpypes/comm.py b/py34/bacpypes/comm.py index c9f786c..0743bc0 100755 --- a/py34/bacpypes/comm.py +++ b/py34/bacpypes/comm.py @@ -574,7 +574,7 @@ def bind(*args): raise RuntimeError("mistery unbound service {!r}".format(sid)) # go through the argument pairs - for i in xrange(len(args)-1): + for i in range(len(args)-1): client = args[i] if _debug: bind._debug(" - client: %r", client) server = args[i+1]