Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
fdb138f
1
Parent(s):
c0707cf
Fix misplaced variable
Browse files- pysr/sr.py +1 -1
pysr/sr.py
CHANGED
@@ -1065,7 +1065,7 @@ def best_callable(equations=None):
|
|
1065 |
def _escape_filename(filename):
|
1066 |
"""Turns a file into a string representation with correctly escaped backslashes"""
|
1067 |
str_repr = str(filename)
|
1068 |
-
str_repr =
|
1069 |
return str_repr
|
1070 |
|
1071 |
|
|
|
1065 |
def _escape_filename(filename):
|
1066 |
"""Turns a file into a string representation with correctly escaped backslashes"""
|
1067 |
str_repr = str(filename)
|
1068 |
+
str_repr = str_repr.replace("\\", "\\\\")
|
1069 |
return str_repr
|
1070 |
|
1071 |
|