Skip to content
Snippets Groups Projects
  • Dan Michael O. Heggø's avatar
    593cb44c
    [#45] replace http.py with the Requests library · 593cb44c
    Dan Michael O. Heggø authored
    - 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
    593cb44c
    History
    [#45] replace http.py with the Requests library
    Dan Michael O. Heggø authored
    - 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