mirror of https://github.com/python/cpython.git
Add the __doc__ string from the original module on copy_none().
This commit is contained in:
parent
929bd0e02e
commit
1f40cd6314
|
@ -244,7 +244,9 @@ def copy_only(self, src, names):
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue