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.