[Libreoffice-commits] core.git: android/mobile-config.py

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Dec 12 13:50:34 UTC 2018


 android/mobile-config.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 617b4bc84eb82022fd792b1aa59cc4c5e3d18b44
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Dec 11 12:47:54 2018 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Dec 12 14:50:07 2018 +0100

    Make android/mobile-config.py compatible with Python 3
    
    Change-Id: I079c4efd28e7e0d10ca6edf242ddd85b9294db08
    Reviewed-on: https://gerrit.libreoffice.org/64962
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/android/mobile-config.py b/android/mobile-config.py
index c4be1e3c4028..ba892846e548 100755
--- a/android/mobile-config.py
+++ b/android/mobile-config.py
@@ -65,14 +65,14 @@ if __name__ == '__main__':
         size = len(ET.tostring(child));
         key = '%s/%s' % (package, section)
         if key in main_xcd_discard:
-            print 'removed %s - saving %d' % (key, size)
+            print('removed %s - saving %d' % (key, size))
             saved = saved + size
             to_remove.append(child)
 
     for child in to_remove:
         root.remove(child)
 
-    print "saved %d of %d bytes: %2.f%%" % (saved, total, saved*100.0/total)
+    print("saved %d of %d bytes: %2.f%%" % (saved, total, saved*100.0/total))
 
     # Don't do pointless Word -> Writer and similar conversions when we have no UI.
     nsDict = {


More information about the Libreoffice-commits mailing list