Skip to content

Commit ac5005e

Browse files
Replaced: fstring with format method to support previous python version
1 parent be152af commit ac5005e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apertium/analysis/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def analyze(self, in_text, formatting='txt'): # type: (Analyzer, str, str) -> L
6060
Returns:
6161
List[LexicalUnit]
6262
"""
63-
apertium_des = execute(in_text, [[f'apertium-des{formatting}', '-n']])
63+
apertium_des = execute(in_text, [['apertium-des{}'.format(formatting), '-n']])
6464
result = execute(apertium_des, self._get_commands())
6565
return self._postproc_text(result)
6666

apertium/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def execute(inp, commands): # type: (str, List[List[str]]) -> str
4848
current = os.getenv('path')
4949
apertium_path = path.join(install_path, 'apertium-all-dev', 'bin')
5050
if path.isdir(apertium_path):
51-
update = f'{current}{apertium_path};'
51+
update = '{}{};'.format(current, apertium_path)
5252
os.putenv('path', update)
5353
for i, command in enumerate(commands):
5454
procs.append(

0 commit comments

Comments
 (0)