jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/759888 )
Change subject: [IMPR] convert Photo._safe_template_value to staticmethod
......................................................................
[IMPR] convert Photo._safe_template_value to staticmethod
Change-Id: I89108d1100faa7338a04ebd767081ca647a1a7ce
---
M scripts/data_ingestion.py
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
Mpaa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/data_ingestion.py b/scripts/data_ingestion.py
index 40109a0..920ef0a 100755
--- a/scripts/data_ingestion.py
+++ b/scripts/data_ingestion.py
@@ -200,7 +200,8 @@
return description
- def _safe_template_value(self, value: str) -> str:
+ @staticmethod
+ def _safe_template_value(value: str) -> str:
"""Replace pipe (|) with {{!}}."""
return value.replace('|', '{{!}}')
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/759888
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I89108d1100faa7338a04ebd767081ca647a1a7ce
Gerrit-Change-Number: 759888
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]