[Libreoffice-commits] core.git: scripting/source

Michael Stahl mstahl at redhat.com
Tue Aug 20 08:21:52 PDT 2013


 scripting/source/pyprov/pythonscript.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5be1f5234b46a89a7660a9cfe3deaa00e2aa124b
Author: Michael Stahl <mstahl at redhat.com>
Date:   Tue Aug 20 17:16:16 2013 +0200

    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

diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py
index a405ca4..c9cafc9 100755
--- a/scripting/source/pyprov/pythonscript.py
+++ b/scripting/source/pyprov/pythonscript.py
@@ -109,7 +109,7 @@ class Logger(LogLevel):
                     " [" +
                     logLevel2String( level ) +
                     "] " +
-                    encfile(msg) +
+                    msg +
                     "\n" )
                 self.target.flush()
             except:


More information about the Libreoffice-commits mailing list