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(':')
pywikibot-commits@lists.wikimedia.org