From 2ea3740ddb04d0adfc45f85b5014bd156cdcf273 Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Thu, 20 Jun 2019 21:50:43 -0700 Subject: [PATCH] Remove UTF-8 encoding when logging for better Python 3 behavior --- code/client/munkilib/munkilog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/client/munkilib/munkilog.py b/code/client/munkilib/munkilog.py index 6d97d507..de2e1837 100644 --- a/code/client/munkilib/munkilog.py +++ b/code/client/munkilib/munkilog.py @@ -53,7 +53,7 @@ def log(msg, logname=''): try: fileobj = open(logpath, mode='a', buffering=1) try: - print(time.strftime(formatstr), msg.encode('UTF-8'), file=fileobj) + print(time.strftime(formatstr), msg, file=fileobj) except (OSError, IOError): pass fileobj.close()