8 def strip_po_charset(inp
, out
):
10 out
.write(string
.replace(inp
.read(),
11 "\"Content-Type: text/plain; charset=UTF-8\\n\"\n",""))
15 if len(sys
.argv
) != 3:
16 print "Usage: %s <input (po) file> <output (spo) file>" % sys
.argv
[0]
18 print "Unsupported number of arguments; 2 required."
21 strip_po_charset(open(sys
.argv
[1],'r'), open(sys
.argv
[2],'w'))
23 if __name__
== '__main__':