mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Update cachingGetHelp to match callbacks.getHelp's prototype
This commit is contained in:
parent
c936897488
commit
026a683dec
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user