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
[networking] Remove _CompatHTTPError
#8871
[networking] Remove _CompatHTTPError
#8871
Conversation
LGTM. But merge this for after the pending release imo |
This is a very small change which nobody probably uses and so it's fine to remove. But in general, I disagree. yt-dlp development moves very fast, but doesnt mean consumers of our API does the same. It's been only 3 months since deprecation, which is a tiny time window for more slow moving projects. |
Shouldn't yt-dlp/yt_dlp/compat/_legacy.py Line 73 in 225cf2b
|
Yep, I agree too. Just in this particular case it should be fine as its unlikely to be used externally. |
Missed yt-dlp/yt_dlp/compat/_legacy.py Line 91 in 225cf2b
|
that says explicitly urllib though? |
They are supposed to be the same thing and was added due to ytdl-org/youtube-dl@249f2b6 |
Use `yt_dlp.networking.exceptions.HTTPError`. `_CompatHTTPError` was to help with transition to the networking framework. Authored by: coletdjnz
IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information
_CompatHTTPError
was to help with transition to the networking framework. It is not used in yt-dlp, but was there in the rare case plugins or external scripts were catching it.These days it should be safe to remove. It just bloats the logs we get from users.
Be sure to add a breaking change announcement on the release changelog.
Template
Before submitting a pull request make sure you have:
In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:
What is the purpose of your pull request?