Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packages: avoid race in use of sys.modules
By iterating with sys.modules.iteritems(), we're subject to a race condition: if there's another thread (e.g., in scons) that does an import, sys.modules will change while we're iterating over it.
- Loading branch information