jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/961178 )
Change subject: [bugfix] Site.file_extension is a property not a method ......................................................................
[bugfix] Site.file_extension is a property not a method
Change-Id: Icbb6cc971ebde786d42827abbcc541aab1a6dec0 --- M pywikibot/specialbots/_upload.py M scripts/checkimages.py 2 files changed, 11 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/specialbots/_upload.py b/pywikibot/specialbots/_upload.py index 045ac27..3fd8a76 100644 --- a/pywikibot/specialbots/_upload.py +++ b/pywikibot/specialbots/_upload.py @@ -240,7 +240,7 @@ # FIXME: these 2 belong somewhere else, presumably in family # forbidden characters are handled by pywikibot/page.py forbidden = ':*/\' # to be extended - allowed_formats = self.target_site.file_extensions() + allowed_formats = self.target_site.file_extensions
# ask until it's valid first_check = True diff --git a/scripts/checkimages.py b/scripts/checkimages.py index 06fafe9..05b4b29 100755 --- a/scripts/checkimages.py +++ b/scripts/checkimages.py @@ -1429,7 +1429,7 @@
# Don't put "}}" here, please. Useless and can give problems. something = ['{{'] - allowed_formats = self.site.file_extensions() # Allowed extensions + allowed_formats = self.site.file_extensions # Allowed extensions brackets = False delete = False notification = None
pywikibot-commits@lists.wikimedia.org