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