jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/414640 )
Change subject: [bugfix] Enable -whitelist option ......................................................................
[bugfix] Enable -whitelist option
- self.whitelist holds the whitelist info. It is not the option. Initialize it with None that the info could be read.
Bug: T188232 Change-Id: I1da59c6bea27000c81bc1f8a5aa771a3be7b677f --- M scripts/patrol.py 1 file changed, 3 insertions(+), 3 deletions(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/patrol.py b/scripts/patrol.py index f21be42..31bc0a1 100755 --- a/scripts/patrol.py +++ b/scripts/patrol.py @@ -33,7 +33,7 @@ ======================
-namespace Filter the page generator to only yield pages in - specified namespaces + specified namespaces -ask If True, confirm each patrol action -whitelist page title for whitelist (optional) -autopatroluserns Takes user consent to automatically patrol @@ -41,7 +41,7 @@
""" # -# (C) Pywikibot team, 2011-2017 +# (C) Pywikibot team, 2011-2018 # # Distributed under the terms of the MIT license. # @@ -106,7 +106,7 @@ self.site.namespace(2), self.site.username(), local_whitelist_subpage_name) - self.whitelist = self.getOption('whitelist') + self.whitelist = None self.whitelist_ts = 0 self.whitelist_load_ts = 0
pywikibot-commits@lists.wikimedia.org