SIGN IN SIGN UP

Issue #13959: Simplify imp.reload() by relying on a module's

__loader__.

Since import now sets __loader__ on all modules it creates and
imp.reload() already relied on the attribute for modules that import
didn't create, the only potential compatibility issue is if people
were deleting the attribute on modules and expecting imp.reload() to
continue to work.
B
Brett Cannon committed
8a1d04c64372d4706572671a21ff9d3e4a6374ca
Parent: 7ceedb8