Skip to content
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

Cleanups #25

Merged
merged 2 commits into from
Feb 8, 2022
Merged

Cleanups #25

merged 2 commits into from
Feb 8, 2022

Conversation

matthiask
Copy link
Contributor

I introduced a blunder in a1f57a5 when I used timeout is 10 instead of timeout == 10. Python (rightly) complains about this with SyntaxWarning: "is" with a literal. Did you mean "=="?

It also seems to me that extending urllib.parse.uses_netloc isn't necessary (anymore?). All tests still pass when removing the relevant code. I stumbled upon this because submission was missing from the list and it still worked and I didn't find the place where the submission protocol was replaced by a known protocol. Removing code is good and removing code which modifies global state is even better.

Thanks again for the package!

@migonzalvar migonzalvar merged commit ff70c81 into migonzalvar:master Feb 8, 2022
@migonzalvar
Copy link
Owner

Thanks @matthiask again. I won't make a release at this moment because these commits do not change library usage.

@matthiask
Copy link
Contributor Author

Sure! Thank you :)

@matthiask matthiask deleted the cleanups branch February 8, 2022 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants