Only alias the imports for vendored dependencies
Before adoption: this commit came in with the history the project adopted, so no landing records it.
While discussion the issue, Donald Stufft (@dstufft) and I realized the simplest solution is to simply add an alias per vendored dependency. The resulting changes are simple and effective. It prevents the issue in 2.5.2 and 2.5.3 where the following would work: from requests.packages import webbrowser This now appropriately raises an ImportError. Closes #2465
authored by Ian Cordasco · committed by Ian Cordasco · parent 461b740 · Browse files · 1 file+4 added−3 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+4 added−3 removed
- other:+4 added−3 removed