Issue #25791: Raise an ImportWarning when __spec__ or __package__ are
not defined for a relative import. This is the start of work to try and clean up import semantics to rely more on a module's spec than on the myriad attributes that get set on a module. Thanks to Rose Ames for the patch.
B
Brett Cannon committed
63b8505281f9c26f7304b3e00d658b429b862d5b
Parent: 43cfd82