]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
importlib doc: Fix approximated import_module() code (GH-9945)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 24 Oct 2018 23:38:04 +0000 (16:38 -0700)
committerGitHub <noreply@github.com>
Wed, 24 Oct 2018 23:38:04 +0000 (16:38 -0700)
commit7717bf992c586bd4152a83c98af59a592bc8adc1
tree5b5bad6b10e16f1ea4c2057b1e8c5855ab2634a2
parent9a0476283393f9988d0946491052d7724a7f9d21
importlib doc: Fix approximated import_module() code (GH-9945)

The spec gets stored on modules with the __spec__ attribute, not spec.
(cherry picked from commit 78401f7156034f713170b8e87b51d23ebdc3bdfa)

Co-authored-by: orlnub123 <orlnub123@gmail.com>
Doc/library/importlib.rst