bpdb - bpGroup takes optional static parameter which will return a staticmethod rather than a normal function

This commit is contained in:
Ken Patel 2010-04-22 01:27:37 +00:00
parent 54e72e860b
commit 259b3396a6

View File

@ -4418,8 +4418,13 @@ class BpDb:
argsCopy = args[:]
def functor(*cArgs, **ckArgs):
ckArgs.update(kArgs)
ckArgs.pop('static', None)
ckArgs['frameCount'] = ckArgs.get('frameCount',1)+1
return bpdb.bp(*(cArgs), **ckArgs)
if kArgs.get('static'):
return staticmethod(functor)
else:
return functor