From 1f40cd6314850c63b68ebd6b2ca46d1c8f7b4124 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 9 Jun 1998 21:33:44 +0000 Subject: [PATCH] Add the __doc__ string from the original module on copy_none(). --- Lib/rexec.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/rexec.py b/Lib/rexec.py index 451e542835f..32735bd2ef4 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