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('|', '{{!}}')