-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-35936: Updates to modulefinder #11787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
7c7dd45
Properly handle SyntaxErrors in Python source files.
brandtbucher 8f98ca6
Fix name collision bug.
brandtbucher c00c4b6
Replace mutable default values.
brandtbucher 94e38d4
Replace deprecated imp usage.
brandtbucher 9bda94b
Fixed whitespace.
brandtbucher c366485
Handle differing drives on Windows.
brandtbucher dc9180d
Again, fixed whitespace.
brandtbucher faf2902
📜🤖 Added by blurb_it.
blurb-it[bot] a1db2ec
Fix relative imports.
brandtbucher bd73fa5
Fix import side-effects.
brandtbucher 210edad
Wait for sys.path to update.
brandtbucher 3a9dd35
Bump sleep time.
brandtbucher 2763440
WIP: Replace sleep with busy wait.
brandtbucher f9939bf
Remove busy wait.
brandtbucher ddb8752
Remove NEWS entry.
brandtbucher 8d7f272
Mutate sys.path in-place.
brandtbucher 1a594f0
Enter RLock during import search.
brandtbucher 6dabded
Try multiprocessing.RLock instead of threading.
brandtbucher 7095d14
Try a couple of possible fixes for failing lookups.
brandtbucher 1aea4af
Remove sys._clear_type_cache calls.
brandtbucher 603481a
📜🤖 Added by blurb_it.
blurb-it[bot] f022f83
📜🤖 Added by blurb_it.
blurb-it[bot] 2568d5a
📜🤖 Added by blurb_it.
blurb-it[bot] bbae72e
Break out new code into standalone function.
brandtbucher 6833792
Don't modify import state in-place.
brandtbucher 0af9f08
Reorder new import.
brandtbucher 4bb452e
Minor style stuff.
brandtbucher a9fd3c6
Replace importlib.util.find_spec with importlib.machinery.PathFinder.…
brandtbucher 826eef5
Invalidate caches before find_spec call.
brandtbucher de22d67
Fix whitespace.
brandtbucher 4de4b3d
Remove duplicate-bpo NEWS entries.
brandtbucher 3085a62
📜🤖 Added by blurb_it.
blurb-it[bot] 7b76e58
📜🤖 Added by blurb_it.
blurb-it[bot] 744de0c
Empty commit.
brandtbucher 7371742
Remove NEWS entry.
brandtbucher 540e819
📜🤖 Added by blurb_it.
blurb-it[bot] d6f19a6
Remove loader subclass checks.
brandtbucher 04fc93a
Use spec.loader for package checking.
brandtbucher a506dc4
Remove sys.path from path.
brandtbucher d1fa6af
Use loader type to classify imports.
brandtbucher 8840bc0
Remove absolute/relative path formatting.
brandtbucher 654461b
Reorder branching.
brandtbucher 9a732c1
Add comments on cache invalidation.
brandtbucher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Library/2019-02-13-18-56-22.bpo-17396.oKRkrD.rst
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:mod:`modulefinder` no longer crashes when encountering syntax errors in followed imports. | ||
Patch by Brandt Bucher. |
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Library/2019-02-13-18-56-27.bpo-35376.UFhYLj.rst
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:mod:`modulefinder` correctly handles modules that have the same name as a bad package. | ||
Patch by Brandt Bucher. |
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Library/2019-02-16-22-19-32.bpo-35936.Ay5WtD.rst
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:mod:`modulefinder` no longer depends on the deprecated :mod:`imp` module, and the initializer for :class:`modulefinder.ModuleFinder` now has immutable default arguments. | ||
Patch by Brandt Bucher. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.