*** empty log message ***
This commit is contained in:
parent
1c75dafb88
commit
12aeeab34e
|
|
@ -139,7 +139,7 @@ def copyFuncs(fromClass, toClass):
|
|||
def replaceMessengerFunc(oldFunc, newFunc):
|
||||
res = messenger.replaceMethod(oldFunc, newFunc)
|
||||
if res:
|
||||
print ('replaced messenger function: ' + newFunc.__name__)
|
||||
print 'replaced %d messenger functions: %s' % (res, newFunc.__name__)
|
||||
|
||||
def replaceTaskMgrFunc(oldFunc, newFunc):
|
||||
res = taskMgr.replaceMethod(oldFunc, newFunc)
|
||||
|
|
|
|||
|
|
@ -149,6 +149,7 @@ class Messenger:
|
|||
you redefine functions with Control-c-Control-v
|
||||
"""
|
||||
import new
|
||||
retFlag = 0
|
||||
for entry in self.dict.items():
|
||||
event, objectDict = entry
|
||||
for objectEntry in objectDict.items():
|
||||
|
|
@ -168,9 +169,9 @@ class Messenger:
|
|||
method.im_class)
|
||||
params[0] = newMethod
|
||||
# Found it retrun true
|
||||
return 1
|
||||
retFlag += 1
|
||||
# didnt find that method, return false
|
||||
return 0
|
||||
return retFlag
|
||||
|
||||
def toggleVerbose(self):
|
||||
Messenger.notify.setDebug(1 - Messenger.notify.getDebug())
|
||||
|
|
|
|||
Loading…
Reference in New Issue