summaryrefslogtreecommitdiffstats
path: root/Lib/rexec.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-09 21:33:44 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-09 21:33:44 (GMT)
commit1f40cd6314850c63b68ebd6b2ca46d1c8f7b4124 (patch)
tree007804e95cd8acc4740c10787e97191b4fcf7be5 /Lib/rexec.py
parent929bd0e02e0fd3062db0ad08443dbfd2846f1f8c (diff)
downloadcpython-1f40cd6314850c63b68ebd6b2ca46d1c8f7b4124.zip
cpython-1f40cd6314850c63b68ebd6b2ca46d1c8f7b4124.tar.gz
cpython-1f40cd6314850c63b68ebd6b2ca46d1c8f7b4124.tar.bz2
Add the __doc__ string from the original module on copy_none().
Diffstat (limited to 'Lib/rexec.py')
-rw-r--r--Lib/rexec.py4
1 files changed, 3 insertions, 1 deletions
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 @@ 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