forked from ipython/ipython
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ipython#1457 from bfroehle/dreload
Update deepreload to use a rewritten knee.py. This fixes the long-standing bug with `dreload(numpy)` not working. `knee.py`, a Python re-implementation of hierarchical module import was removed from the standard library because it no longer functioned properly. This uses `deepreload.py`, a fixed version of `knee.py` which overrides `__builtin__.__import__` to ensure that each module is re-imported once (before just referring to sys.modules as usual). In addition, `os.path` was added to the default excluded modules, since somehow it has an entry in sys.modules without `os' being a package. Added tests for this functionality (which had never had any tests). Closes ipythongh-32.
- Loading branch information
Showing
2 changed files
with
299 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.