mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Remove print() from Messenger.find() and Messenger.findAll()
If one needs to use find() or findAll() not for debugging purposes (like for getting the function or arguments for some binding), then the print functions in these methods are really unwelcome. find() is the only nice way to get this info (other then de-name-mangling __callbacks)
This commit is contained in:
parent
e67ebd80cd
commit
353ccfebc1
@ -531,7 +531,6 @@ class Messenger:
|
||||
keys.sort()
|
||||
for event in keys:
|
||||
if repr(event).find(needle) >= 0:
|
||||
print(self.__eventRepr(event))
|
||||
return {event: self.__callbacks[event]}
|
||||
|
||||
def findAll(self, needle, limit=None):
|
||||
@ -545,7 +544,6 @@ class Messenger:
|
||||
keys.sort()
|
||||
for event in keys:
|
||||
if repr(event).find(needle) >= 0:
|
||||
print(self.__eventRepr(event))
|
||||
matches[event] = self.__callbacks[event]
|
||||
# if the limit is not None, decrement and
|
||||
# check for break:
|
||||
|
Loading…
x
Reference in New Issue
Block a user