Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
61d9c14
1
Parent(s):
ec0919d
Attempt to replace windows Unicode errors
Browse files- pysr/sr.py +1 -1
pysr/sr.py
CHANGED
@@ -391,7 +391,7 @@ def _cmd_runner(command, **kwargs):
|
|
391 |
.replace('\\033[1A', '\033[1A')
|
392 |
.replace('\\033[1B', '\033[1B')
|
393 |
.replace('\\r', '\r')
|
394 |
-
.encode(sys.stdout.encoding))
|
395 |
|
396 |
print(decoded_line, end='')
|
397 |
|
|
|
391 |
.replace('\\033[1A', '\033[1A')
|
392 |
.replace('\\033[1B', '\033[1B')
|
393 |
.replace('\\r', '\r')
|
394 |
+
.encode(sys.stdout.encoding, errors='replace'))
|
395 |
|
396 |
print(decoded_line, end='')
|
397 |
|