jenkins-bot has submitted this change and it was merged.

Change subject: [FIX] APISite.upload: Support exists-normalized
......................................................................


[FIX] APISite.upload: Support exists-normalized

The upload warning type 'exists-normalized' has been added in MW 1.22 but
wasn't supported in pywikibot yet.

Change-Id: Ic3d4517e1e864e4f7a420d826618fc479ed3361c
---
M pywikibot/site.py
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/site.py b/pywikibot/site.py
index 463552c..d1d730f 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -4980,6 +4980,8 @@
             'duplicate': "Uploaded file is a duplicate of %(msg)s.",
             'badfilename': "Target filename is invalid.",
             'filetype-unwanted-type': "File %(msg)s type is unwanted type.",
+            'exists-normalized': 'File exists with different extension as '
+                                 '"%(msg)s".',
         }
 
         # check for required user right

-- 
To view, visit https://gerrit.wikimedia.org/r/216545
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic3d4517e1e864e4f7a420d826618fc479ed3361c
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <commodorefabia...@gmx.de>
Gerrit-Reviewer: John Vandenberg <jay...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
Pywikibot-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to