We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c28426 commit 106b47dCopy full SHA for 106b47d
cosmotech/coal/cosmotech_api/dataset/download/file.py
@@ -112,7 +112,7 @@ def process_txt(target_file) -> Dict[str, Any]:
112
LOGGER.debug(T("coal.services.dataset.processing_text").format(file_name=target_file))
113
with open(target_file, "r") as _file:
114
current_filename = os.path.basename(target_file)
115
- content[current_filename] = "".join(line for line in _file)
+ content[current_filename] = _file.read()
116
117
line_count = content[current_filename].count("\n") + 1
118
LOGGER.debug(T("coal.services.dataset.text_processed").format(file_name=current_filename, lines=line_count))
0 commit comments