Update CodeFileEditAtomicFlow.py
Browse files
CodeFileEditAtomicFlow.py
CHANGED
|
@@ -13,16 +13,16 @@ class CodeFileEditorAtomicFlow(AtomicFlow):
|
|
| 13 |
raise NotImplemented
|
| 14 |
try:
|
| 15 |
content = (
|
| 16 |
-
"The below code will be appended to " +
|
| 17 |
code_lib_location + "\n"
|
| 18 |
-
"Edit the code directly or provide your thoughts down below if you have any suggestions.\n"
|
| 19 |
-
"If you prefer not to give any thoughts, just leave it blank, the code will be added to the library as it is "
|
| 20 |
"in this file.\n"
|
| 21 |
"###########\n"
|
| 22 |
-
"Code:\n" +
|
| 23 |
code_str +
|
| 24 |
"\n############\n"
|
| 25 |
-
"Thoughts:"
|
| 26 |
)
|
| 27 |
with open(temp_file_location, "w") as file:
|
| 28 |
file.write(content)
|
|
|
|
| 13 |
raise NotImplemented
|
| 14 |
try:
|
| 15 |
content = (
|
| 16 |
+
"# The below code will be appended to " +
|
| 17 |
code_lib_location + "\n"
|
| 18 |
+
"# Edit the code directly or provide your thoughts down below if you have any suggestions.\n"
|
| 19 |
+
"# If you prefer not to give any thoughts, just leave it blank, the code will be added to the library as it is "
|
| 20 |
"in this file.\n"
|
| 21 |
"###########\n"
|
| 22 |
+
"# Code:\n" +
|
| 23 |
code_str +
|
| 24 |
"\n############\n"
|
| 25 |
+
"# Thoughts:"
|
| 26 |
)
|
| 27 |
with open(temp_file_location, "w") as file:
|
| 28 |
file.write(content)
|