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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f40cd6314850c63b68ebd6b2ca46d1c8f7b4124;p=thirdparty%2FPython%2Fcpython.git Add the __doc__ string from the original module on copy_none(). --- diff --git a/Lib/rexec.py b/Lib/rexec.py index 451e542835f3..32735bd2ef42 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