Update app.py
Browse files
app.py
CHANGED
|
@@ -37,9 +37,8 @@ def repl(rs,rt,uu):
|
|
| 37 |
r_file = file.read()
|
| 38 |
r_file = r_file.replace(f'{rs}',f'{rt}')
|
| 39 |
o_file = open(f'mod_{uu}','w')
|
| 40 |
-
o_file = o_file.
|
| 41 |
file.close()
|
| 42 |
-
o_file.close()
|
| 43 |
return r_file, f'{o_file}'
|
| 44 |
|
| 45 |
|
|
|
|
| 37 |
r_file = file.read()
|
| 38 |
r_file = r_file.replace(f'{rs}',f'{rt}')
|
| 39 |
o_file = open(f'mod_{uu}','w')
|
| 40 |
+
o_file = o_file.write(r_file)
|
| 41 |
file.close()
|
|
|
|
| 42 |
return r_file, f'{o_file}'
|
| 43 |
|
| 44 |
|