Add the __doc__ string from the original module on copy_none().

This commit is contained in:
Guido van Rossum 1998-06-09 21:33:44 +00:00
parent 929bd0e02e
commit 1f40cd6314
1 changed files with 3 additions and 1 deletions

View File

@ -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