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

Replace urllib.urlopen with requests in loanstats.py for 2852 #4406

Conversation

dherbst
Copy link
Contributor

@dherbst dherbst commented Jan 12, 2021

Addresses #2852

Refactor to replace urllib.urlopen with requests. Also cleaned up some lint/pycodestyle warnings about formatting.

Technical

Uses requests.compat to remove the urllib import and only use requests.

Testing

Manually tested to verify the code ran as expected, and unit tests pass.

Screenshot

N/A

Stakeholders

@cclauss

Copy link
Collaborator

@cclauss cclauss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@cclauss cclauss merged commit 1531eab into internetarchive:master Jan 12, 2021
@dherbst dherbst deleted the 2852/refactor/replace-urlopen-with-requests-in-loanstats branch January 12, 2021 17:07
Sabreen-Parveen pushed a commit to Sabreen-Parveen/openlibrary that referenced this pull request Feb 5, 2021
…etarchive#4406)

* Replace urllib.urlopen with requests in loanstats.py for 2852

* Instead of using requests.compat, import from urllib.
Sabreen-Parveen pushed a commit to Sabreen-Parveen/openlibrary that referenced this pull request Feb 5, 2021
…etarchive#4406)

* Replace urllib.urlopen with requests in loanstats.py for 2852

* Instead of using requests.compat, import from urllib.
Sabreen-Parveen pushed a commit to Sabreen-Parveen/openlibrary that referenced this pull request Feb 5, 2021
…etarchive#4406)

* Replace urllib.urlopen with requests in loanstats.py for 2852

* Instead of using requests.compat, import from urllib.
Sabreen-Parveen pushed a commit to Sabreen-Parveen/openlibrary that referenced this pull request Feb 5, 2021
…etarchive#4406)

* Replace urllib.urlopen with requests in loanstats.py for 2852

* Instead of using requests.compat, import from urllib.
Sabreen-Parveen pushed a commit to Sabreen-Parveen/openlibrary that referenced this pull request Feb 5, 2021
…etarchive#4406)

* Replace urllib.urlopen with requests in loanstats.py for 2852

* Instead of using requests.compat, import from urllib.
Sabreen-Parveen pushed a commit to Sabreen-Parveen/openlibrary that referenced this pull request Feb 15, 2021
…etarchive#4406)

* Replace urllib.urlopen with requests in loanstats.py for 2852

* Instead of using requests.compat, import from urllib.
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