Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1283850?usp=email )
Change subject: [FEAT] Enable commonsfiledesc for all Commons family sites
......................................................................
[FEAT] Enable commonsfiledesc for all Commons family sites
Makes the CosmeticChangesToolkit.commonsfiledesc method work for all commons
family sites,
including commons:test and commons:beta, instead of just commons:commons.
Bug: T425349
Change-Id: Id6a75b22cf8715b68013387719f9c603d7f980f6
---
M pywikibot/cosmetic_changes.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Verified; Looks good to me, approved
diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py
index cbf34c0..dfe0338 100644
--- a/pywikibot/cosmetic_changes.py
+++ b/pywikibot/cosmetic_changes.py
@@ -1078,7 +1078,7 @@
[1]:
https://commons.wikimedia.org/wiki/Commons:Tools/pywiki_file_description_cleanup
"""
- if (self.site.sitename != 'commons:commons'
+ if (self.site.family.name != 'commons'
or self.namespace != Namespace.FILE):
return text
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1283850?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Id6a75b22cf8715b68013387719f9c603d7f980f6
Gerrit-Change-Number: 1283850
Gerrit-PatchSet: 2
Gerrit-Owner: MacaroniThrift1 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]