summaryrefslogtreecommitdiffstats
path: root/share/palettes
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-06-12 17:29:27 +0000
committerCampbell Barton <ideasman42@gmail.com>2011-06-12 17:29:27 +0000
commit6a8fb5d72ae23abb99081961d4187ba0f784071a (patch)
tree0773e619e640a4eb4b9293dc240d089c0b998f86 /share/palettes
parentOn arch linux python3 is default, changes so this works on py3 (first commit,... (diff)
downloadinkscape-6a8fb5d72ae23abb99081961d4187ba0f784071a.tar.gz
inkscape-6a8fb5d72ae23abb99081961d4187ba0f784071a.zip
support python3.x for other i18n scripts
(bzr r10271)
Diffstat (limited to 'share/palettes')
-rwxr-xr-xshare/palettes/i18n.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/share/palettes/i18n.py b/share/palettes/i18n.py
index 853e29efb..76e45b346 100755
--- a/share/palettes/i18n.py
+++ b/share/palettes/i18n.py
@@ -4,7 +4,7 @@ import sys
import glob
import re
-print "char * stringlst = ["
+sys.stdout.write("char * stringlst = [")
# Gimp palette format: R G B Label (255 0 0 Red)
@@ -16,10 +16,10 @@ for filename in sys.argv[1:]:
for line in file:
match = regex.match(line)
if match:
- print '\n/* Palette: ' + filename + ' */'
+ sys.stdout.write('\n/* Palette: ' + filename + ' */')
search = regexnoc.search(match.group(1))
if search:
- print "/* xgettext:no-c-format */"
- print "NC_(\"Palette\", \"" + match.group(1) + "\"),"
+ sys.stdout.write("/* xgettext:no-c-format */")
+ sys.stdout.write("NC_(\"Palette\", \"" + match.group(1) + "\"),")
-print "];"
+sys.stdout.write("];")