Mercurial > public > mercurial-scm > hg
comparison mercurial/exthelper.py @ 41049:021496277392
exthelper: correct a documentation typo
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 23 Dec 2018 01:05:20 -0500 |
parents | f5ec93f69171 |
children | 41cd64a81dd9 |
comparison
equal
deleted
inserted
replaced
41048:84d61fdcefa5 | 41049:021496277392 |
---|---|
255 This function takes two arguments, the container and the name of the | 255 This function takes two arguments, the container and the name of the |
256 function to wrap. The wrapping is performed during `uisetup`. | 256 function to wrap. The wrapping is performed during `uisetup`. |
257 | 257 |
258 example:: | 258 example:: |
259 | 259 |
260 @eh.function(context.changectx, 'babar') | 260 @eh.addattr(context.changectx, 'babar') |
261 def babar(ctx): | 261 def babar(ctx): |
262 return 'babar' in ctx.description | 262 return 'babar' in ctx.description |
263 """ | 263 """ |
264 def dec(func): | 264 def dec(func): |
265 self._duckpunchers.append((container, funcname, func)) | 265 self._duckpunchers.append((container, funcname, func)) |