diff --git a/direct/src/distributed/DistributedObject.py b/direct/src/distributed/DistributedObject.py index 23fe76625c..424f1db049 100644 --- a/direct/src/distributed/DistributedObject.py +++ b/direct/src/distributed/DistributedObject.py @@ -124,8 +124,8 @@ class DistributedObject(DistributedObjectBase): if field is not None: p = DCPacker() p.setUnpackData(field.getDefaultValue()) - len = p.rawUnpackUint16() // 4 - for i in range(len): + length = p.rawUnpackUint16() // 4 + for i in range(length): zone = int(p.rawUnpackUint32()) autoInterests.add(zone) autoInterests.update(autoInterests) @@ -141,9 +141,9 @@ class DistributedObject(DistributedObjectBase): _getAutoInterests = None return list(autoInterests) - def setNeverDisable(self, bool): - assert bool == 1 or bool == 0 - self.neverDisable = bool + def setNeverDisable(self, boolean): + assert boolean == 1 or boolean == 0 + self.neverDisable = boolean def getNeverDisable(self): return self.neverDisable @@ -177,9 +177,9 @@ class DistributedObject(DistributedObjectBase): # call this to throw out cached data from a previous instantiation self._cachedData[name].flush() - def setCacheable(self, bool): - assert bool == 1 or bool == 0 - self.cacheable = bool + def setCacheable(self, boolean): + assert boolean == 1 or boolean == 0 + self.cacheable = boolean def getCacheable(self): return self.cacheable