summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/_bootstrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/importlib/_bootstrap.py')
-rw-r--r--Lib/importlib/_bootstrap.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 112db4e..d89af42 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -498,6 +498,9 @@ class BuiltinImporter:
@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