[Libreoffice-commits] .: Branch 'libreoffice-4-0' - pyuno/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Dec 19 02:22:34 PST 2012


 pyuno/source/loader/pythonloader.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 44302569171b55ccfa29f9c42767072e19e0bc82
Author: László Németh <nemeth at numbertext.org>
Date:   Wed Dec 19 11:21:03 2012 +0100

    some not important Python3.3 port (pythonloader DEBUG mode)
    
    Change-Id: If499f952e426d0754f8502bace81c1ac918479f1

diff --git a/pyuno/source/loader/pythonloader.py b/pyuno/source/loader/pythonloader.py
index 03bf7d2..0330a6e 100644
--- a/pyuno/source/loader/pythonloader.py
+++ b/pyuno/source/loader/pythonloader.py
@@ -41,16 +41,16 @@ g_loadedComponents = {}
 def checkForPythonPathBesideComponent( url ):
     path = unohelper.fileUrlToSystemPath( url+"/pythonpath.zip" );
     if DEBUG == 1:
-        print("checking for existence of " + encfile( path ))
+        print(b"checking for existence of " + encfile( path ))
     if 1 == os.access( encfile( path ), os.F_OK) and not path in sys.path:
         if DEBUG == 1:
-            print("adding " + encfile( path ) + " to sys.path")
+            print(b"adding " + encfile( path ) + b" to sys.path")
         sys.path.append( path )
 
     path = unohelper.fileUrlToSystemPath( url+"/pythonpath" );
     if 1 == os.access( encfile( path ), os.F_OK) and not path in sys.path:
         if DEBUG == 1:
-            print("adding " + encfile( path ) + " to sys.path")
+            print(b"adding " + encfile( path ) + b" to sys.path")
         sys.path.append( path )
 
 def encfile(uni):


More information about the Libreoffice-commits mailing list