i18n.py
branchstable
changeset 8124 acc23c284432
parent 7896 4c954e1e73ef
child 8225 baf8c16cae95
--- a/i18n.py	Thu Dec 08 14:29:48 2011 +0100
+++ b/i18n.py	Fri Dec 09 12:08:44 2011 +0100
@@ -33,7 +33,7 @@
     output = open(output_file, 'w')
     for filepath in files:
         for match in re.finditer('i18n:(content|replace)="([^"]+)"', open(filepath).read()):
-            print >> output, '_("%s")' % match.group(2)
+            output.write('_("%s")' % match.group(2))
     output.close()