• Neil Schemenauer's avatar
    Refactor PyImport_ImportModuleLevelObject(). (#4680) · eea3cc1e
    Neil Schemenauer authored
    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().
    eea3cc1e
import.c 62 KB