From 343e0db126c6861e81ecc0553807c9d8f9b0c7bd Mon Sep 17 00:00:00 2001 From: "Haoyu (Daniel)" Date: Thu, 5 Sep 2024 17:42:01 +0800 Subject: [PATCH] fix docstring --- src/monty/io.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/monty/io.py b/src/monty/io.py index 0ffda9bb..c3c7e6b8 100644 --- a/src/monty/io.py +++ b/src/monty/io.py @@ -68,7 +68,10 @@ def _get_line_ending( "\r": Classic MacOS line ending. Raises: - ValueError: If file is empty or line ending is unknown. + ValueError: If line ending is unknown. + + Warns: + If file is empty, "\n" would be used as default. """ if isinstance(file, (str, Path)): with open(file, "rb") as f: