From da256a30b04c4ba8085eb8bcaf08ea47c6be3043 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Mon, 29 Apr 2019 14:25:04 +0300 Subject: [PATCH] use normal print to avoid b"...". --- pysollib/mfxutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pysollib/mfxutil.py b/pysollib/mfxutil.py index f461ed10..2d743b44 100644 --- a/pysollib/mfxutil.py +++ b/pysollib/mfxutil.py @@ -107,9 +107,9 @@ def print_err(s, level=1): elif level == 2: ss = PACKAGE+': DEBUG WARNING:' try: - print_(ss, s.encode(locale.getpreferredencoding()), file=sys.stderr) - except Exception: print_(ss, s, file=sys.stderr) + except Exception: + print_(ss, s.encode(locale.getpreferredencoding()), file=sys.stderr) sys.stderr.flush()