jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/938363 )
Change subject: [bugfix] Only handle namespaces with
pagegenerators.GeneratorFactory()
......................................................................
[bugfix] Only handle namespaces with pagegenerators.GeneratorFactory()
Bug: T341768
Change-Id: I524a3383eac919e2e4e2bb2ec621341c545e9bea
---
M scripts/patrol.py
1 file changed, 12 insertions(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/patrol.py b/scripts/patrol.py
index 806a0f1..502a984 100755
--- a/scripts/patrol.py
+++ b/scripts/patrol.py
@@ -407,7 +407,8 @@
# Parse command line arguments
local_args = pywikibot.handle_args(args)
site = pywikibot.Site()
- gen_factory = pagegenerators.GeneratorFactory(site)
+ gen_factory = pagegenerators.GeneratorFactory(
+ site, enabled_options=['namespaces'])
local_args = gen_factory.handle_args(local_args)
for arg in local_args:
opt, _, value = arg.partition(':')
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/938363
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I524a3383eac919e2e4e2bb2ec621341c545e9bea
Gerrit-Change-Number: 938363
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]