jenkins-bot merged this change.

View Change

Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
[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(-)

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

To view, visit change 414640. To unsubscribe, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I1da59c6bea27000c81bc1f8a5aa771a3be7b677f
Gerrit-Change-Number: 414640
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot <>