mirror of
https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot
synced 2024-11-22 03:52:37 +01:00
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
This commit is contained in:
parent
0dc6cadee3
commit
82b90d32a9
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ def hande_task(phid):
|
||||||
|
|
||||||
url = 'pywikibot/core/+/master/pywikibot/families/{}_family.py'.format(parts[1])
|
url = 'pywikibot/core/+/master/pywikibot/families/{}_family.py'.format(parts[1])
|
||||||
pywikibot = get_file_from_gerrit(url)
|
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))
|
add_text(' [x] [[{}|Pywikibot]]'.format(gerrit_path + url))
|
||||||
else:
|
else:
|
||||||
add_text(' [] [[{}|Pywikibot]]'.format(gerrit_path + url))
|
add_text(' [] [[{}|Pywikibot]]'.format(gerrit_path + url))
|
||||||
|
|
Loading…
Reference in a new issue