]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Refactor PyImport_ImportModuleLevelObject(). (#4680)
authorNeil Schemenauer <nas-github@arctrix.com>
Sun, 3 Dec 2017 17:26:03 +0000 (09:26 -0800)
committerGitHub <noreply@github.com>
Sun, 3 Dec 2017 17:26:03 +0000 (09:26 -0800)
commiteea3cc1ef0dec0af193eedb4c1164263fbdfd8cc
tree6d956c573644b542bd086f540e0ff3d2896a0141
parent078f1814f1a4413a2a0fdb8cf4490ee0fc98ef34
Refactor PyImport_ImportModuleLevelObject(). (#4680)

Add import_find_and_load() helper function.  The addition of
the importtime option has made PyImport_ImportModuleLevelObject() large
and so using a helper seems worthwhile.  It also makes it clearer that
abs_name is the only argument needed by _find_and_load().
Python/import.c