mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Add the __doc__ string from the original module on copy_none().
This commit is contained in:
parent
929bd0e02e
commit
1f40cd6314
1 changed files with 3 additions and 1 deletions
|
@ -244,7 +244,9 @@ class RExec(ihooks._Verbose):
|
||||||
return dst
|
return dst
|
||||||
|
|
||||||
def copy_none(self, src):
|
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
|
# Add a module -- return an existing module or create one
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue