From 367d64160c56f47cf45c9ecb36542e97a0bb8628 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 14 Nov 2008 14:17:42 +0100 Subject: [PATCH] extensions: copy __module__ for wrapped commands --- mercurial/extensions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mercurial/extensions.py b/mercurial/extensions.py index 795c6e394a..bc6b094d64 100644 --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -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