##// END OF EJS Templates
extensions: copy __module__ for wrapped commands
Dirkjan Ochtman -
r7373:d9e9dd2b default
parent child Browse files
Show More
@@ -99,6 +99,7 b' def wrapcommand(table, command, wrapper)'
99 return wrapper(origfn, *args, **kwargs)
99 return wrapper(origfn, *args, **kwargs)
100
100
101 wrap.__doc__ = getattr(origfn, '__doc__')
101 wrap.__doc__ = getattr(origfn, '__doc__')
102 wrap.__module__ = getattr(origfn, '__module__')
102
103
103 newentry = list(entry)
104 newentry = list(entry)
104 newentry[0] = wrap
105 newentry[0] = wrap
General Comments 0
You need to be logged in to leave comments. Login now