• Brett Cannon's avatar
    Turned out that if you used explicit relative import syntax · eb3cd301
    Brett Cannon yazdı
    (e.g. from .os import sep) and it failed, import would still try the implicit
    relative import semantics of an absolute import (from os import sep). That's
    not right, so when level is negative, only do explicit relative import
    semantics.
    
    Fixes issue #7902. Thanks to Meador Inge for the patch.
    eb3cd301
import.c 98 KB