jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/470848 )
Change subject: [cleanup] Remove unused code reported by Vulture ......................................................................
[cleanup] Remove unused code reported by Vulture
Removed 4 errors reported by Vulture with regards to unused code. postForm() and postData() in pywikibot/site.py changed using remove_last_args decorator
Bug: T203395 Change-Id: I40c5bbe76575b9dd938cc676ec1260d7547eca45 --- M pywikibot/site.py 1 file changed, 4 insertions(+), 3 deletions(-)
Approvals: D3r1ck01: Looks good to me, approved Shreyasminocha: Looks good to me, but someone else must approve Xqt: Looks good to me, but someone else must approve jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py index 2bebcd3..8033eeb 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -1283,14 +1283,15 @@ return http.request(self, path)
@deprecated(since='20141225') - def postForm(self, address, predata, sysop=False, cookies=None): + @remove_last_args(['sysop', 'cookies']) + def postForm(self, address, predata): """DEPRECATED.""" return self.getUrl(address, data=predata)
@deprecated(since='20141225') @deprecated_args(contentType=None) - def postData(self, address, data, sysop=False, - compress=True, cookies=None): + @remove_last_args(['sysop', 'compress', 'cookies']) + def postData(self, address, data): """DEPRECATED.""" return self.getUrl(address, data=data)