commit ac5005e131c39b7530bac7b9e09e8761f3d6b64a Author: Vaydheesh Date: Sat Apr 6 23:26:27 2019 +0530 Replaced: fstring with format method to support previous python version diff --git a/apertium/analysis/__init__.py b/apertium/analysis/__init__.py index 1c0ffa5..db19581 100644 --- a/apertium/analysis/__init__.py +++ b/apertium/analysis/__init__.py @@ -60,7 +60,7 @@ class Analyzer: Returns: List[LexicalUnit] """ - apertium_des = execute(in_text, [[f'apertium-des{formatting}', '-n']]) + apertium_des = execute(in_text, [['apertium-des{}'.format(formatting), '-n']]) result = execute(apertium_des, self._get_commands()) return self._postproc_text(result) diff --git a/apertium/utils.py b/apertium/utils.py index 067957b..8c07eb7 100644 --- a/apertium/utils.py +++ b/apertium/utils.py @@ -48,7 +48,7 @@ def execute(inp, commands): # type: (str, List[List[str]]) -> str current = os.getenv('path') apertium_path = path.join(install_path, 'apertium-all-dev', 'bin') if path.isdir(apertium_path): - update = f'{current}{apertium_path};' + update = '{}{};'.format(current, apertium_path) os.putenv('path', update) for i, command in enumerate(commands): procs.append(