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 6dd25ce commit beb6e24Copy full SHA for beb6e24
python-function/reader.py
@@ -12,6 +12,4 @@ def read_file_contents(file_path):
12
print(f"Error: '{file_path}' is not a file.")
13
return
14
15
- with path.open("r", encoding="utf-8") as f:
16
- contents = f.read()
17
- return contents
+ return path.read_text(encoding="utf-8")
0 commit comments