jenkins-bot has submitted this change and it was merged.
Change subject: replace site.lang with site.code which is prefered in core ......................................................................
replace site.lang with site.code which is prefered in core
replacements made by compat2core script
Change-Id: I3495e3d995afa44557601ef46796bc1f9e9c09db --- M scripts/casechecker.py 1 file changed, 3 insertions(+), 3 deletions(-)
Approvals: John Vandenberg: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/casechecker.py b/scripts/casechecker.py index 27bce4c..2f0852c 100644 --- a/scripts/casechecker.py +++ b/scripts/casechecker.py @@ -249,8 +249,8 @@ self.seenUnresolvedLinks = set()
# TODO: handle "continue" - if self.site.lang in self.whitelists: - wlpage = self.whitelists[self.site.lang] + if self.site.code in self.whitelists: + wlpage = self.whitelists[self.site.code] pywikibot.output(u'Loading whitelist from %s' % wlpage) wlparams = { 'action': 'query', @@ -288,7 +288,7 @@ for i in self.knownWords])) else: pywikibot.output(u'Whitelist is not known for language %s' - % self.site.lang) + % self.site.code)
def RunQuery(self, params): while True:
pywikibot-commits@lists.wikimedia.org