jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/234421 )
Change subject: Replace deprecated 'nocapitalize' in interwiki.py ......................................................................
Replace deprecated 'nocapitalize' in interwiki.py
While processing pages in Wiktionaries, when langlinks differed from page title only in capitalization, a DeprecationWarning was issued regarding the use of obsolete property BaseSite.nocapitalize.
Change-Id: I0e2e3822601257cb3b741d92971e071d73ba635c --- M scripts/interwiki.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/scripts/interwiki.py b/scripts/interwiki.py index 7b4f5bc..bc4af48 100755 --- a/scripts/interwiki.py +++ b/scripts/interwiki.py @@ -1125,8 +1125,8 @@ % (page, self.originPage)) return True elif (page.title() != self.originPage.title() and - self.originPage.site.nocapitalize and - page.site.nocapitalize): + self.originPage.namespace().case == 'case-sensitive' and + page.namespace().case == 'case-sensitive'): pywikibot.output( u"NOTE: Ignoring %s for %s in wiktionary mode because both " u"languages are uncapitalized."
pywikibot-commits@lists.wikimedia.org