Gerrit Patch Uploader has uploaded a new change for review. https://gerrit.wikimedia.org/r/234421
Change subject: Fix for message "pywikibot.site.BaseSite.nocapitalize is deprecated" ...................................................................... Fix for message "pywikibot.site.BaseSite.nocapitalize is deprecated" 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(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/21/234421/1 diff --git a/scripts/interwiki.py b/scripts/interwiki.py index eabe727..df8cf8e 100755 --- a/scripts/interwiki.py +++ b/scripts/interwiki.py @@ -1112,8 +1112,8 @@ % (page, self.originPage)) return True elif (page.title() != self.originPage.title() and - self.originPage.site.nocapitalize and - page.site.nocapitalize): + self.originPage.site.siteinfo['case'] == 'case-sensitive' and + page.site.siteinfo['case'] == 'case-sensitive'): pywikibot.output( u"NOTE: Ignoring %s for %s in wiktionary mode because both " u"languages are uncapitalized." -- To view, visit https://gerrit.wikimedia.org/r/234421 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0e2e3822601257cb3b741d92971e071d73ba635c Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com> Gerrit-Reviewer: Malafaya <malaf...@clix.pt> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits