Skip to content
Snippets Groups Projects
Commit 593cb44c authored by Dan Michael O. Heggø's avatar Dan Michael O. Heggø
Browse files

[#45] replace http.py with the Requests library

- Note the following exception replacements:
  mwclient.errors.HTTPError -> requests.exceptions.ConnectionError
  mwclient.errors.HTTPStatusError -> requests.exceptions.HTTPError
  mwclient.errors.HTTPRedirectError -> requests.exceptions.TooManyRedirects

- Removed the `compability.old_upload` method, which was used for
  MediaWiki < 1.16.

- Requests automatically decompresses gzip-encoded responses, and
  does its best to decode response content to unicode when possible.

- [#53] Using the Responses library to mock http requests in tests
parent 14b4e917
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment