Skip to content

Commit 93a2109

Browse files
committed
[GR-6004] Remove last truffle patch in distutils that we'll remove for a while
PullRequest: graalpython/307
2 parents 20424bf + 6a15060 commit 93a2109

File tree

1 file changed

+4
-5
lines changed
  • graalpython/lib-python/3/distutils

1 file changed

+4
-5
lines changed

graalpython/lib-python/3/distutils/log.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ def _log(self, level, msg, args):
2727
stream = sys.stderr
2828
else:
2929
stream = sys.stdout
30-
# TODO: Truffle revert-me [GR-10256]
31-
# if stream.errors == 'strict':
32-
# # emulate backslashreplace error handler
33-
# encoding = stream.encoding
34-
# msg = msg.encode(encoding, "backslashreplace").decode(encoding)
30+
if stream.errors == 'strict':
31+
# emulate backslashreplace error handler
32+
encoding = stream.encoding
33+
msg = msg.encode(encoding, "backslashreplace").decode(encoding)
3534
stream.write('%s\n' % msg)
3635
stream.flush()
3736

0 commit comments

Comments
 (0)