diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-08-20 17:16:16 +0200 |
---|---|---|
committer | Rene Engelhard <rene@debian.org> | 2013-08-22 00:08:17 +0200 |
commit | 8507627388a3a2c213177566f8c18ba5d36dc67d (patch) | |
tree | 42c7422306f3c10e8af1c46a92e38667cc11684e | |
parent | 9c253eb2aa0d9860916d626738b746594775f321 (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-x | scripting/source/pyprov/pythonscript.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py index c92d212641f2..27ac6bd8523d 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: |