diff --git a/Lib/rexec.py b/Lib/rexec.py index 451e542835f..32735bd2ef4 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py @@ -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