Skip to content

Commit b10ee32

Browse files
mfwassrdb
authored andcommitted
direct: Fix some more NameErrors
Closes panda3d#274
1 parent bfff7e1 commit b10ee32

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

direct/src/distributed/PyDatagramIterator.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def getArg(self, subatomicType, divisor=1):
7575
b = self.getUint8()
7676
retVal.append((a, b))
7777
else:
78-
raise Exception("Error: No such type as: " + str(subAtomicType))
78+
raise Exception("Error: No such type as: " + str(subatomicType))
7979
else:
8080
# See if it is in the handy dict
8181
getFunc = self.FuncDict.get(subatomicType)
@@ -121,8 +121,4 @@ def getArg(self, subatomicType, divisor=1):
121121
else:
122122
raise Exception("Error: No such type as: " + str(subatomicType))
123123

124-
125-
126124
return retVal
127-
128-

direct/src/stdpy/threading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def __init__(self, value = 1):
302302
Semaphore.__init__(value)
303303

304304
def release(self):
305-
if self.getCount() > value:
305+
if self.getCount() > self.__max:
306306
raise ValueError
307307

308308
Semaphore.release(self)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy