From 82b90d32a92a0ac82af56d90f010fe30d658eaba Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Tue, 14 Jul 2020 00:08:43 +0200 Subject: [PATCH] Do not use the new python formatting system The python3 version in ToolForge doesn't support it yet and it fails with File "/data/project/phabbot/phabbot/new_wikis_handler.py", line 211 if f"'{language_code}'" in pywikibot: ^ SyntaxError: invalid syntax --- new_wikis_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new_wikis_handler.py b/new_wikis_handler.py index e17a815..95dec14 100644 --- a/new_wikis_handler.py +++ b/new_wikis_handler.py @@ -208,7 +208,7 @@ def hande_task(phid): url = 'pywikibot/core/+/master/pywikibot/families/{}_family.py'.format(parts[1]) pywikibot = get_file_from_gerrit(url) - if f"'{language_code}'" in pywikibot: + if "'{}'".format(language_code) in pywikibot: add_text(' [x] [[{}|Pywikibot]]'.format(gerrit_path + url)) else: add_text(' [] [[{}|Pywikibot]]'.format(gerrit_path + url))