Mercurial > public > mercurial-scm > hg
comparison mercurial/extensions.py @ 11520:94b3bbc886cf stable
extensions: improve language for wrapfunction() docstring.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Fri, 09 Jul 2010 11:13:45 +0200 |
parents | bbdf1fb1d3e3 |
children | 3efadce5b346 |
comparison
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 |