Repository navigation
Conversation
Owner
|
Folded into #609 (see the PR description for credit). Thanks for the report and the repro. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The change
Fix
find_all_links()returning rejected matches as strings whenwith_text=False. Withschemes=['https'], for example, an HTTP match previously appeared in the URL-only result instead of being filtered out. The same happened for a schemeless match whendefault_scheme=False. The change retains those strings only in text-preserving mode, with regression coverage for both filters and mixed accepted/rejected input.Focused URL tests and doctests: 142 passed. The full local suite had 680 passed and two loopback-bind
PermissionErrorfailures; the same two failed on the unchanged base (676 passed). Other platforms and interpreter versions were not tested locally.The backstory
This is my first encounter with boltons, during an exploratory correctness scout. The URL utility caught my attention because its filtering options could return plain strings where the documented URL-only mode promises URL objects; I wanted to make that behavior reliable for callers.
AI assistance