From 610411aacc5fd4b2920bec889229b708749003c4 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh <bryan.tongminh@gmail.com> Date: Thu, 17 Sep 2009 14:39:24 +0000 Subject: [PATCH] Enable ApiUpload on 1.16 wikis. --- mwclient/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mwclient/client.py b/mwclient/client.py index cfb6277..616a5e6 100644 --- a/mwclient/client.py +++ b/mwclient/client.py @@ -325,8 +325,7 @@ class Site(object): def upload(self, file, filename, description, ignore = False, file_size = None): - if self.version[:2] < (1, 17): - # To 1.16 once deployed on Wikimedia + if self.version[:2] < (1, 16): return compatibility.old_upload(self, file = file, filename = filename, description = description, ignore = ignore, file_size = file_size) -- GitLab