From 210bc648ecf3b53192ceff78cf77a6a56ba627cb Mon Sep 17 00:00:00 2001 From: hakril Date: Mon, 20 May 2024 18:49:44 +0200 Subject: [PATCH] Fix error in pycompat --- windows/pycompat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/pycompat.py b/windows/pycompat.py index 34a7402..c30f29c 100644 --- a/windows/pycompat.py +++ b/windows/pycompat.py @@ -35,7 +35,7 @@ if is_py3: else: # Not a TTY (seen in github CI) : if no explict encoding on stdout : use the locale to encode it the best we can to prevent print error repr_encoding = sys.stdout.encoding or locale.getpreferredencoding() - def urepr_encode_notty(s): + def urepr_encode(s): return ustr.encode(repr_encoding, "backslashreplace") else: # py2.7