From: Guido van Rossum Date: Tue, 9 Jun 1998 21:33:44 +0000 (+0000) Subject: Add the __doc__ string from the original module on copy_none(). X-Git-Tag: v1.5.2a1~494 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f40cd6314850c63b68ebd6b2ca46d1c8f7b4124;p=python Add the __doc__ string from the original module on copy_none(). --- diff --git a/Lib/rexec.py b/Lib/rexec.py index 451e542835..32735bd2ef 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py @@ -244,7 +244,9 @@ class RExec(ihooks._Verbose): return dst def copy_none(self, src): - return self.add_module(src.__name__) + m = self.add_module(src.__name__) + m.__doc__ = src.__doc__ + return m # Add a module -- return an existing module or create one