summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-08-20 17:16:16 +0200
committerRene Engelhard <rene@debian.org>2013-08-22 00:09:32 +0200
commit64f291c6d1f5ce9a1e5f7d0b8d2351e363c60d5c (patch)
treebd2ae0e9dc1430dd9d3a79ebeeff4e3e589eee07
parent34f55adfd701c4cc3dd7c804690cd946cec30e48 (diff)
deb#719941: unbreak python script provider debug logging on Python 3
Don't mess with encoding in Logger.log, since sys.stdout.write() accepts str (in python3) and both str/unicode (in python2) anyway. Change-Id: Ib0339b7fd882a7654cc24c38efdaf67f519663ff Signed-off-by: Michael Stahl <mstahl@redhat.com>
-rwxr-xr-xscripting/source/pyprov/pythonscript.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py
index dbc5725ea19d..3ddcec69b1ed 100755
--- a/scripting/source/pyprov/pythonscript.py
+++ b/scripting/source/pyprov/pythonscript.py
@@ -101,7 +101,7 @@ class Logger(LogLevel):
" [" +
logLevel2String( level ) +
"] " +
- encfile(msg) +
+ msg +
"\n" )
self.target.flush()
except: