jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/629637 )
Change subject: [cleanup] Show a FutureWarning for Request.http_params ......................................................................
[cleanup] Show a FutureWarning for Request.http_params
Request.http_params is deprecated for 6 years. Show a FutureWarning for this method that it can be removed shortly. Also do not provide a private method as alternative.
Change-Id: I6a490a48b95b5f86b1157dd729dca3549180ae60 --- M pywikibot/data/api.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py index 11fd5e0..82f6d4f 100644 --- a/pywikibot/data/api.py +++ b/pywikibot/data/api.py @@ -1400,7 +1400,7 @@ except TypeError: self.mime_params = {} if value else None
- @deprecated('_http_param_string', since='20141006') + @deprecated(since='20141006', future_warning=True) def http_params(self): """Return the parameters formatted for inclusion in an HTTP request.