diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 112db4e096e..d89af428d87 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