Skip to content
Snippets Groups Projects
  1. Aug 21, 2024
    • Marc Troelitzsch's avatar
      refactor!: Use f-strings for string formatting · 658d5829
      Marc Troelitzsch authored
      This commit refactors the codebase to consistently use Python 3.6
      f-strings for string concatenation and interpolation.
      
      BREAKING CHANGE: This update increases the minimum required Python
      version from 3.5 to 3.6. Python 3.5 reached end-of-life in September
      2020 (~4 years ago) and has been dropped from most distributions, so the
      impact on users should be minimal.
      658d5829
    • Marc Troelitzsch's avatar
      refactor: Update some outdated syntax · 6eb48c47
      Marc Troelitzsch authored
      This commit updates some outdated syntax with the modern alternatives.
      The changes were applied automatically using pyupgrade (v2.0.1) with the
      following command:
      
      ```
      pyupgrade --py3-plus **/*.py
      ```
      
      These updates are purely syntactical and there should be no change in
      functionality.
      6eb48c47
  2. Jan 27, 2024
  3. Dec 02, 2016
  4. May 09, 2016
  5. Aug 12, 2015
  6. Aug 18, 2014
    • Dan Michael O. Heggø's avatar
      [#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
  7. Jun 15, 2014
  8. May 11, 2013
  9. Feb 22, 2013
Loading