-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Refactor _get_html_page() to use exceptions for flow control #5838
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
cjerdonek
merged 14 commits into
pypa:master
from
uranusjr:htmlpage-extract-breakdown-get-page
Oct 11, 2018
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
7a17a1f
Extract VCS scheme check into helper function
uranusjr 72779c6
Extract request part of get_page into helper
uranusjr bb6dae6
Inline PackageFinder._get_page()
uranusjr 025dc45
Don't need to unpack prematurely
uranusjr 44713ca
Move VCS scheme check back out
uranusjr bad04d8
Extract content type detection logic
uranusjr 231e616
Group HEAD optimization logic into HTML getter, add docs
uranusjr d4da76c
Move directory check out of _get_html_response()
uranusjr a9ebb79
More detailed information on Content-Type error, fix typos
uranusjr 68cf77a
Only store what we need in _NotHTML
uranusjr 65260d0
Fix behavior if archive-like URL is not HTTP(S)
uranusjr 5441fc7
Some tests for error and input correction
uranusjr 200f126
Move HTML page tests to their own file, fix typos
uranusjr fc53f71
More tests on successful scenarios, fix docstrings
uranusjr 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix content type detection if a directory named like an archive is used as a package source. |
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
Oops, something went wrong.
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.