Skip to content
Snippets Groups Projects
Commit 554666e3 authored by Konstantin Julius Lotzgeselle's avatar Konstantin Julius Lotzgeselle :speech_balloon:
Browse files

Moddi

parent 0a94d40e
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ def get_prepared_data(source_data_path: str,
newline_symbol: str = "\n",
seperator_symbol: str = "\t",
debug: bool = False) -> tuple[list[str], list[str]]:
if target_data_path:
if target_data_path or source_data_path == target_data_path:
with open(source_data_path, "r", encoding=encoding, newline=newline_symbol) as f:
source_data = [line.rstrip("\n") for line in f]
with open(target_data_path, "r", encoding=encoding, newline=newline_symbol) as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment