Kaydet (Commit) 617b4bc8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Make android/mobile-config.py compatible with Python 3

Change-Id: I079c4efd28e7e0d10ca6edf242ddd85b9294db08
Reviewed-on: https://gerrit.libreoffice.org/64962
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 56ff7f77
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment