[Python-checkins] peps: [PEP 451] Add in missing spec arg in loading code.

eric.snow python-checkins at python.org
Sun Oct 27 05:15:33 CET 2013


http://hg.python.org/peps/rev/f8ea26c370fa
changeset:   5225:f8ea26c370fa
user:        Eric Snow <ericsnowcurrently at gmail.com>
date:        Sat Oct 26 22:11:29 2013 -0600
summary:
  [PEP 451] Add in missing spec arg in loading code.

files:
  pep-0451.txt |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/pep-0451.txt b/pep-0451.txt
--- a/pep-0451.txt
+++ b/pep-0451.txt
@@ -451,7 +451,7 @@
    if module is None:
        module = ModuleType(spec.name)
    # The import-related module attributes get set here:
-   _init_module_attrs(module)
+   _init_module_attrs(spec, module)
 
    if not hasattr(spec.loader, 'exec_module'):
        module = spec.loader.load_module(spec.name)

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


More information about the Python-checkins mailing list