Sn1per has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/185661

Change subject: Properly determine the valid protection types
......................................................................

Properly determine the valid protection types

self.protections.items() instead of self.protections on protect.py L105

Bug: T87124
Change-Id: I49615f7fddd548ee4bf5ad953317ed3c9dce883d
---
M scripts/protect.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/61/185661/1

diff --git a/scripts/protect.py b/scripts/protect.py
index c8503bd..27ec505 100644
--- a/scripts/protect.py
+++ b/scripts/protect.py
@@ -102,7 +102,7 @@
                     self.options['always'] = True
             applicable = page.applicable_protections()
             protections = dict(
-                [prot for prot in self.protections if prot[0] in applicable])
+                [prot for prot in self.protections.items() if prot[0] in 
applicable])
             page.protect(reason=self.getOption('summary'),
                          protections=protections)
 

-- 
To view, visit https://gerrit.wikimedia.org/r/185661
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I49615f7fddd548ee4bf5ad953317ed3c9dce883d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Sn1per <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to