read/text
This commit is contained in:
parent
065d647e51
commit
b3e66ec1c3
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@ def read_file_lines(file_path: str, charset: str = CHARSET):
|
||||||
return read_file_text(file_path).split(os.linesep)
|
return read_file_text(file_path).split(os.linesep)
|
||||||
|
|
||||||
|
|
||||||
def read_file_text(file_path: str, charset: str = CHARSET):
|
def read_file_text(file_path: str, charset: str = CHARSET) -> str:
|
||||||
|
"""Read whole file text."""
|
||||||
return read_file_bytes(file_path).decode(charset)
|
return read_file_bytes(file_path).decode(charset)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue