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
  2. Jan 27, 2024
  3. Sep 05, 2023
  4. May 28, 2020
  5. Oct 10, 2019
  6. Dec 09, 2018
  7. Nov 22, 2018
    • cpettet's avatar
      Change invocation syntax to relative Site() examples · 7f59df33
      cpettet authored
      This is what is imported at the beginning of the examples.
      This could also be done by changing the import to 'import mwclient'
      rather than 'from mwclient import Site'.
      
      Neither seems more correct but I have tried to follow
      what seems most intended.
      
      >>> from mwclient import Site
      >>> site = mwclient.Site('en.wikipedia.org')
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      NameError: name 'mwclient' is not defined
      
      vs.
      
      >>> site = Site('en.wikipedia.org')
      >>> page = site.pages['Greater guinea pig']
      >>> text = page.text()
      >>> page.exists
      True
      7f59df33
  8. Jul 03, 2016
  9. Aug 23, 2015
Loading