Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
4383f88
1
Parent(s):
03d4ec3
Fix redefinition of builtin
Browse files- pysr/sr.py +3 -3
pysr/sr.py
CHANGED
@@ -1065,9 +1065,9 @@ def best_callable(equations=None):
|
|
1065 |
|
1066 |
def _escape_filename(filename):
|
1067 |
"""Turns a file into a string representation with correctly escaped backslashes"""
|
1068 |
-
|
1069 |
-
|
1070 |
-
return
|
1071 |
|
1072 |
|
1073 |
# https://gist.github.com/garrettdreyfus/8153571
|
|
|
1065 |
|
1066 |
def _escape_filename(filename):
|
1067 |
"""Turns a file into a string representation with correctly escaped backslashes"""
|
1068 |
+
str_repr = str(filename)
|
1069 |
+
str_repr = repr.replace("\\", "\\\\")
|
1070 |
+
return str_repr
|
1071 |
|
1072 |
|
1073 |
# https://gist.github.com/garrettdreyfus/8153571
|