jasharpe/python-reloader — comment on commit 272d6b64bb165c2dce02df93632995fbcf137d1e
File:  line 0
By jparise:

This is a good catch. I think I'm going to commit a slightly different version of this patch, however, because we can go a bit further and only look up `m` from `sys.modules` when `parent is not None`. It's a small improvement, but an improvement nonetheless.