diff --git a/direct/src/distributed/PyDatagramIterator.py b/direct/src/distributed/PyDatagramIterator.py index e97600f6b4..60267a1ab9 100755 --- a/direct/src/distributed/PyDatagramIterator.py +++ b/direct/src/distributed/PyDatagramIterator.py @@ -75,7 +75,7 @@ class PyDatagramIterator(DatagramIterator): b = self.getUint8() retVal.append((a, b)) else: - raise Exception("Error: No such type as: " + str(subAtomicType)) + raise Exception("Error: No such type as: " + str(subatomicType)) else: # See if it is in the handy dict getFunc = self.FuncDict.get(subatomicType) @@ -121,8 +121,4 @@ class PyDatagramIterator(DatagramIterator): else: raise Exception("Error: No such type as: " + str(subatomicType)) - - return retVal - - diff --git a/direct/src/stdpy/threading.py b/direct/src/stdpy/threading.py index b4cb6d9228..466a198a3a 100644 --- a/direct/src/stdpy/threading.py +++ b/direct/src/stdpy/threading.py @@ -302,7 +302,7 @@ class BoundedSemaphore(Semaphore): Semaphore.__init__(value) def release(self): - if self.getCount() > value: + if self.getCount() > self.__max: raise ValueError Semaphore.release(self)