jenkins-bot has submitted this change and it was merged.
Change subject: Fix APISite.search incorrect deprecate_arg used
......................................................................
Fix APISite.search incorrect deprecate_arg used
APISite.search listed 'number' as a deprecated argument
name for the new argument 'limit'. However 'limit' isn't
a valid argument; 'total' is the valid argument name.
Change-Id: I3ea14e96de1bb87674c42859189c7ff2f791d436
---
M pywikibot/site.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
XZise: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py
index 142e419..1e6e614 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -3479,7 +3479,7 @@
return rcgen
- @deprecate_arg("number", "limit")
+ @deprecated_args(number="total")
def search(self, searchstring, namespaces=None, where="text",
getredirects=False, step=None, total=None, content=False):
"""Iterate Pages that contain the searchstring.
--
To view, visit https://gerrit.wikimedia.org/r/175411
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3ea14e96de1bb87674c42859189c7ff2f791d436
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: XZise <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits