From 52c91733b5743a18303b6346f7d37530e03f4111 Mon Sep 17 00:00:00 2001 From: andreacavalli Date: Thu, 30 Dec 2021 16:59:10 +0100 Subject: [PATCH] Update '__main__.py' --- __main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/__main__.py b/__main__.py index 51fe1bb..1e517c7 100644 --- a/__main__.py +++ b/__main__.py @@ -1,5 +1,6 @@ import sys import typing +import re from collections import OrderedDict from code_writer import CodeWriter @@ -336,7 +337,7 @@ def main(input_path: str, output_path: str, headers_path: str, java17: str): current_arguments: typing.Optional[typing.List[typing.Tuple[str, str, typing.List[str]]]] = None # [(arg_name, arg_type), ...] - lines = list(map(compose(remove_parentheses, str.strip), data_input.readlines())) + lines = list(map(remove_parentheses, map(str.strip, data_input.readlines()))) for no, line in enumerate(lines): keywords = line.split()