Browse Source

direct: Fix some more NameErrors

Closes #274
Michael Wass 7 years ago
parent
commit
b10ee32752
2 changed files with 2 additions and 6 deletions
  1. 1 5
      direct/src/distributed/PyDatagramIterator.py
  2. 1 1
      direct/src/stdpy/threading.py

+ 1 - 5
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
-
-

+ 1 - 1
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)