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

Remove some urllib and future.standard_library usages #2140

Closed
wants to merge 4 commits into from

Conversation

megies
Copy link
Member

@megies megies commented May 7, 2018

What does this PR do?

  • remove remaining instances of with future.standard_library.hooks(): with either importing in a if/else depending on Python 2/3 or by using requests.compat (which is internally doing just the same as well)
  • remove some urllib usages with requests

Why was it initiated? Any relevant Issues?

Closes #1254. Even if not all urllib usage is replaced, I think getting rid of future.standard_library should resolve the problem reported in #1254 (e.g. seen here: http://tests.obspy.org/35446/)

PR Checklist

  • Correct base branch selected? master for new features, maintenance_... for bug fixes
  • +DOCS because some changes might affect the gallery
  • +TESTS:ALL
  • All tests still pass.

@megies megies added the PY2/3 *deprecated* label May 7, 2018
@megies megies added this to the 1.2.0 milestone May 7, 2018
@megies megies changed the title Use requests Remove some urllib and future.standard_library usages May 7, 2018
@krischer krischer added this to Free for the Taking in Release 1.2.0 Feb 14, 2019
@megies
Copy link
Member Author

megies commented Feb 14, 2019

Rebased on current master and force-pushed so that we have fresh CI results tomorrow.

@megies
Copy link
Member Author

megies commented Feb 15, 2019

Bump to 2.0.0

@megies megies modified the milestones: 1.2.0, 2.0.0 Feb 15, 2019
@megies megies removed this from Free for the Taking in Release 1.2.0 Feb 15, 2019
@ThomasLecocq ThomasLecocq added this to Free for the Taking in Release 2.0.0 Mar 13, 2020
@ThomasLecocq ThomasLecocq added this to Free for the Taking in Release 2.0.0 Mar 13, 2020
@trichter trichter modified the milestones: 1.3.0, 1.4.0 Jan 6, 2022
@trichter
Copy link
Member

trichter commented Jan 7, 2022

Obsolete.

@trichter trichter closed this Jan 7, 2022
@trichter trichter removed this from the 1.4.0 milestone Jan 7, 2022
@megies megies deleted the use_requests branch January 23, 2023 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PY2/3 *deprecated*
Projects
Release 2.0.0
Free for the Taking
Release 2.0.0
Free for the Taking
Development

Successfully merging this pull request may close these issues.

Use requests instead of urllib
2 participants