mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
parent
bfff7e1000
commit
b10ee32752
@ -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
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user