Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -157,7 +157,7 @@ def parse_python_file(path: str) -> str:
|
|
| 157 |
str: The complete contents of the Python file as a string.
|
| 158 |
|
| 159 |
"""
|
| 160 |
-
with open(
|
| 161 |
return py_file.read()
|
| 162 |
|
| 163 |
|
|
|
|
| 157 |
str: The complete contents of the Python file as a string.
|
| 158 |
|
| 159 |
"""
|
| 160 |
+
with open(path, "r") as py_file:
|
| 161 |
return py_file.read()
|
| 162 |
|
| 163 |
|