jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
[bugfix] fix deprecated parameters

fix deprecated parameter "showPatrolled"
in APISite.newpages and APISite.recentpages

Bug: T203878
Change-Id: I07a441c13cbf5c529cfaeb78cd5f3a2229729869
---
M scripts/patrol.py
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/scripts/patrol.py b/scripts/patrol.py
index 7ef328f..3f60734 100755
--- a/scripts/patrol.py
+++ b/scripts/patrol.py
@@ -442,11 +442,10 @@
"""Generator which loads pages details to be processed."""
while True:
if recent_new_gen:
- generator = gen(namespaces=namespaces, user=user,
- showPatrolled=False)
+ generator = gen(namespaces=namespaces, user=user, patrolled=False)
else:
generator = gen(namespaces=namespaces, user=user,
- returndict=True, showPatrolled=False)
+ returndict=True, patrolled=False)
for page in generator:
if recent_new_gen:
yield page

To view, visit change 459366. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I07a441c13cbf5c529cfaeb78cd5f3a2229729869
Gerrit-Change-Number: 459366
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)