mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
extensions: copy __module__ for wrapped commands
This commit is contained in:
parent
7fb31ff7cc
commit
367d64160c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user