jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] UploadWarning: Use correct parameter names
......................................................................
[FIX] UploadWarning: Use correct parameter names
In d0d1c830 the filekey parameter has been added to UploadWarning, although
throughout the repository the variable name 'file_key' has been used.
Change-Id: I4a7be5ded060b3fe622e4369b767932546f6fb6c
---
M pywikibot/data/api.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index bec26a6..42405a0 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -113,7 +113,7 @@
"""Upload failed with a warning message (passed as the argument)."""
- def __init__(self, code, message, filekey=None, offset=0):
+ def __init__(self, code, message, file_key=None, offset=0):
"""
Create a new UploadWarning instance.
@@ -125,7 +125,7 @@
@type offset: int or bool
"""
super(UploadWarning, self).__init__(code, message)
- self.filekey = filekey
+ self.file_key = file_key
self.offset = offset
@property
--
To view, visit https://gerrit.wikimedia.org/r/218008
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4a7be5ded060b3fe622e4369b767932546f6fb6c
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits