From 95744e99702148a0aae0d9dddd4d4215b70ee7ae Mon Sep 17 00:00:00 2001 From: klea Date: Sat, 6 Dec 2025 05:11:42 +0100 Subject: wb(wbmexcl): use page.allpages(prefix=) rather than loop --- wikibot/wbmexclusions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wikibot/wbmexclusions.py b/wikibot/wbmexclusions.py index 47e25af..f97adae 100644 --- a/wikibot/wbmexclusions.py +++ b/wikibot/wbmexclusions.py @@ -56,8 +56,7 @@ def handle_page(site, page): def main(): site = mwclient.Site('wiki.archiveteam.org', path = '/') - for page in site.Pages: - if not page.name.startswith('List of websites excluded from the Wayback Machine'): continue + for page in site.allpages(prefix = 'List of websites excluded from the Wayback Machine'): handle_page(site, page) main() -- cgit v1.3.1-10-gc9f91