[Python-checkins] cpython: Issue #15110: Copy same docstring as other '_exec_module' methods.

amaury.forgeotdarc python-checkins at python.org
Sun Jul 8 21:03:12 CEST 2012


http://hg.python.org/cpython/rev/5d43154d68a8
changeset:   78010:5d43154d68a8
user:        Amaury Forgeot d'Arc <amauryfa at gmail.com>
date:        Sun Jul 08 21:03:01 2012 +0200
summary:
  Issue #15110: Copy same docstring as other '_exec_module' methods.

files:
  Lib/importlib/_bootstrap.py |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -498,6 +498,9 @@
 
     @classmethod
     def _exec_module(cls, fullname):
+        """Helper for load_module, allowing to isolate easily (when
+        looking at a traceback) whether an error comes from executing
+        an imported module's code."""
         return _imp.init_builtin(fullname)
 
     @classmethod

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list