commit a8b3f1473a745b6da67784eaf7ebeeab2a18c1f2 Author: vaydheesh Date: Mon Aug 26 13:11:07 2019 +0530 update return type of handle_command_with_wrapper() diff --git a/apertium/utils.py b/apertium/utils.py index ec498df..0e56f91 100644 --- a/apertium/utils.py +++ b/apertium/utils.py @@ -67,7 +67,7 @@ def deformatter(text: str) -> str: return '{}[][\n]'.format(text.translate(special_chars_map)) -def handle_command_with_wrapper(command: Tuple, end: bytes) -> bytes: +def handle_command_with_wrapper(command: Tuple, end: bytes) -> Tuple[bytes, bool]: """ Executes the given command via wrappers """ @@ -143,6 +143,7 @@ def handle_command_with_wrapper(command: Tuple, end: bytes) -> bytes: os.remove(input_file.name) os.remove(output_file.name) + return end, used_wrapper