Show More
@@ -199,6 +199,7 b' def _updatewrapper(wrap, origfn):' | |||
|
199 | 199 | '''Copy attributes to wrapper function''' |
|
200 | 200 | wrap.__module__ = getattr(origfn, '__module__') |
|
201 | 201 | wrap.__doc__ = getattr(origfn, '__doc__') |
|
202 | wrap.__dict__.update(getattr(origfn, '__dict__', {})) | |
|
202 | 203 | |
|
203 | 204 | def wrapcommand(table, command, wrapper, synopsis=None, docstring=None): |
|
204 | 205 | '''Wrap the command named `command' in table |
General Comments 0
You need to be logged in to leave comments.
Login now