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)


--
To view, visit https://gerrit.wikimedia.org/r/470848
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I40c5bbe76575b9dd938cc676ec1260d7547eca45
Gerrit-Change-Number: 470848
Gerrit-PatchSet: 7
Gerrit-Owner: Pipix <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Pipix <[email protected]>
Gerrit-Reviewer: Shreyasminocha <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot (75)
Gerrit-CC: Framawiki <[email protected]>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to