commit | 1f40cd6314850c63b68ebd6b2ca46d1c8f7b4124 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Jun 09 21:33:44 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Jun 09 21:33:44 1998 +0000 |
tree | 007804e95cd8acc4740c10787e97191b4fcf7be5 | |
parent | 929bd0e02e0fd3062db0ad08443dbfd2846f1f8c [diff] [blame] |
Add the __doc__ string from the original module on copy_none().
diff --git a/Lib/rexec.py b/Lib/rexec.py index 451e542..32735bd 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py
@@ -244,7 +244,9 @@ 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