From b23a0a83a676b7d9a248b92a69ba9bc175f74faf Mon Sep 17 00:00:00 2001 From: jwoojin9 Date: Wed, 19 Nov 2025 23:39:36 +0900 Subject: [PATCH] fix: correct file opening mode --- 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]: