Update cachingGetHelp to match callbacks.getHelp's prototype

This commit is contained in:
James Vega 2008-12-22 02:19:37 +00:00
parent c936897488
commit 026a683dec

View File

@ -56,9 +56,9 @@ suites = []
originalCallbacksGetHelp = callbacks.getHelp originalCallbacksGetHelp = callbacks.getHelp
lastGetHelp = 'x'*1000 lastGetHelp = 'x'*1000
def cachingGetHelp(method, name=None): def cachingGetHelp(method, name=None, doc=None):
global lastGetHelp global lastGetHelp
lastGetHelp = originalCallbacksGetHelp(method, name) lastGetHelp = originalCallbacksGetHelp(method, name, doc)
return lastGetHelp return lastGetHelp
callbacks.getHelp = cachingGetHelp callbacks.getHelp = cachingGetHelp