mercurial/extensions.py
branchstable
changeset 11520 94b3bbc886cf
parent 11519 bbdf1fb1d3e3
child 11521 3efadce5b346
equal deleted inserted replaced
11519:bbdf1fb1d3e3 11520:94b3bbc886cf
   136     return entry
   136     return entry
   137 
   137 
   138 def wrapfunction(container, funcname, wrapper):
   138 def wrapfunction(container, funcname, wrapper):
   139     '''Wrap the function named funcname in container
   139     '''Wrap the function named funcname in container
   140 
   140 
   141     It is replacing with your wrapper. The container is typically a
   141     Replace the funcname member in the given container with the specified
   142     module, class, or instance.
   142     wrapper. The container is typically a module, class, or instance.
   143 
   143 
   144     The wrapper will be called like
   144     The wrapper will be called like
   145 
   145 
   146       wrapper(orig, *args, **kwargs)
   146       wrapper(orig, *args, **kwargs)
   147 
   147