Skip to content

Commit beb6e24

Browse files
committed
TR updates, first round
1 parent 6dd25ce commit beb6e24

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python-function/reader.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ def read_file_contents(file_path):
1212
print(f"Error: '{file_path}' is not a file.")
1313
return
1414

15-
with path.open("r", encoding="utf-8") as f:
16-
contents = f.read()
17-
return contents
15+
return path.read_text(encoding="utf-8")

0 commit comments

Comments
 (0)