Skip to content
Snippets Groups Projects
  1. Aug 21, 2024
    • 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 28, 2024
    • Marc Troelitzsch's avatar
      Remove some Python 2.x leftovers · 3f857829
      Marc Troelitzsch authored
      * `Iterator.next()`` has been replaced with `Iterator.__next__()`
      * The `object.__unicode__()` method is not used anymore
      * Default source encoding has changed from ASCII to UTF-8
      3f857829
  3. Jan 27, 2024
  4. Feb 19, 2023
    • Adam Williamson's avatar
      Handle page protection having no expiry (#290) · 44e6066f
      Adam Williamson authored
      
      Issue #290 gives an example of a wiki with protected pages whose
      protection definitions have no 'expiry' key at all. This seems
      strange and, on a quick through the mediawiki code, difficult
      to achieve, but since there's a live site out there that does it,
      and mediawiki *does* seem to have at least some code to handle
      such cases (e.g. how the expiry shows as 'indefinite' in the
      page information), let's handle it too, by representing this as
      None.
      
      Signed-off-by: default avatarAdam Williamson <awilliam@redhat.com>
      44e6066f
  5. May 28, 2020
  6. Oct 10, 2019
  7. Aug 02, 2019
  8. Feb 17, 2019
  9. Nov 04, 2018
  10. Jun 28, 2018
  11. Jan 14, 2018
  12. Jan 11, 2018
  13. Oct 23, 2016
  14. Aug 21, 2016
  15. Jul 02, 2016
  16. Sep 19, 2015
    • Adam Williamson's avatar
      optionally, cache page text until next edit operation · e8fc54d9
      Adam Williamson authored
      Store the results of page.text() operations in a simple cache
      dict. This avoids unnecessary remote roundtrips. Cache is
      cleared on each successful page.save() operation. cache
      argument can be set to 'False' to disable use of the cache.
      e8fc54d9
  17. Mar 15, 2015
  18. Nov 27, 2014
  19. Nov 23, 2014
  20. Oct 27, 2014
  21. Sep 27, 2014
    • Dan Michael O. Heggø's avatar
      Add `expandtemplates` argument to Page.text() · 57df5f4e
      Dan Michael O. Heggø authored
      - This is more flexible than the `Page.get_expanded()` method,
        since it can be combined with the `section` argument as well,
        to get the expanded wikitext of a section.
      
      - Deprecating `Page.get_expanded()`.
      
      - Also fixed a very minor bug where `Page.last_rev_time` was
        not reset when editing new pages after having edited non-new pages.
      
      - Added more Page tests
      57df5f4e
  22. Sep 21, 2014
Loading