jenkins-bot has submitted this change and it was merged. Change subject: Remove wikidata cosmetic changes flag in page.py ......................................................................
Remove wikidata cosmetic changes flag in page.py 73273de4 introduced a workaround in page.py to prevent cosmetic changes being activated on Wikidata. At the time, the 'wikidata' family had two sites, 'client' and 'repo'. Since early 2013 with 03e87f2d the code for the production repository changed to 'wikidata', when Wikidata moved to wikidata.org However the code used in the workaround in page.py was not updated, so this workaround has not been effective for over 2.5 years. Change-Id: I85cdfbf39c310279fabd2aea1ddbbb3e3d47e14b --- M pywikibot/families/wikidata_family.py M pywikibot/page.py 2 files changed, 6 insertions(+), 1 deletion(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/families/wikidata_family.py b/pywikibot/families/wikidata_family.py index 1824a8f..847d655 100644 --- a/pywikibot/families/wikidata_family.py +++ b/pywikibot/families/wikidata_family.py @@ -4,6 +4,7 @@ __version__ = '$Id$' +from pywikibot import config from pywikibot import family # The Wikidata family @@ -31,6 +32,11 @@ '_default': ((u'/doc', ), ['wikidata']), } + # Disable cosmetic changes + config.cosmetic_changes_disable.update({ + 'wikidata': ('wikidata', 'test') + }) + def shared_data_repository(self, code, transcluded=False): """ Indicate Wikidata is both a repository and its own client. diff --git a/pywikibot/page.py b/pywikibot/page.py index d284e2c..2ba2b0c 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -1123,7 +1123,6 @@ pywikibot.calledModuleName() in config.cosmetic_changes_deny_script: return family = self.site.family.name - config.cosmetic_changes_disable.update({'wikidata': ('repo', )}) if config.cosmetic_changes_mylang_only: cc = ((family == config.family and self.site.lang == config.mylang) or -- To view, visit https://gerrit.wikimedia.org/r/237362 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I85cdfbf39c310279fabd2aea1ddbbb3e3d47e14b Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: John Vandenberg <jay...@gmail.com> Gerrit-Reviewer: John Vandenberg <jay...@gmail.com> Gerrit-Reviewer: Ladsgroup <ladsgr...@gmail.com> Gerrit-Reviewer: Xqt <i...@gno.de> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits