jenkins-bot submitted this change.

View Change


Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] Only handle namespaces with pagegenerators.GeneratorFactory()

Bug: T341768
Change-Id: I524a3383eac919e2e4e2bb2ec621341c545e9bea
---
M scripts/patrol.py
1 file changed, 12 insertions(+), 1 deletion(-)

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 change 938363. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I524a3383eac919e2e4e2bb2ec621341c545e9bea
Gerrit-Change-Number: 938363
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged