commit | eea3cc1ef0dec0af193eedb4c1164263fbdfd8cc | [log] [tgz] |
---|---|---|
author | Neil Schemenauer <nas-github@arctrix.com> | Sun Dec 03 09:26:03 2017 -0800 |
committer | GitHub <noreply@github.com> | Sun Dec 03 09:26:03 2017 -0800 |
tree | 6d956c573644b542bd086f540e0ff3d2896a0141 | |
parent | 078f1814f1a4413a2a0fdb8cf4490ee0fc98ef34 [diff] |
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().