Skip to content
Snippets Groups Projects
Commit 0230d155 authored by marvnsch's avatar marvnsch
Browse files

Merge remote-tracking branch 'origin/main'

parents 9b0e883f 554666e3
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,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