From f8e2829a449ed31d49ff9929b86e93d958c8aa29 Mon Sep 17 00:00:00 2001 From: jaesoonkim Date: Wed, 19 Nov 2025 20:47:46 +0900 Subject: [PATCH] fix: path_to_file_list() --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 0d1f17b..d32c0d3 100644 --- a/main.py +++ b/main.py @@ -2,7 +2,7 @@ def path_to_file_list(path: str) -> List[str]: """Reads a file and returns a list of lines in the file""" - li = open(path, 'w') + lines = open(path, 'r').read().split('\n') return lines def train_file_list_to_json(english_file_list: List[str], german_file_list: List[str]) -> List[str]: