extensions: copy __module__ for wrapped commands

This commit is contained in:
Dirkjan Ochtman 2008-11-14 14:17:42 +01:00
parent 7fb31ff7cc
commit 367d64160c

View File

@ -99,6 +99,7 @@ def wrapcommand(table, command, wrapper):
return wrapper(origfn, *args, **kwargs)
wrap.__doc__ = getattr(origfn, '__doc__')
wrap.__module__ = getattr(origfn, '__module__')
newentry = list(entry)
newentry[0] = wrap