2012-03-31 | Paul Boddie | raw files shortlog changelog graph | Fixed the manifest rewriting. | |
convert.py (file) |
1.1 --- a/convert.py Sat Mar 31 02:06:23 2012 +0200 1.2 +++ b/convert.py Sat Mar 31 02:10:16 2012 +0200 1.3 @@ -121,7 +121,7 @@ 1.4 1.5 "Sort the manifest given in 'filename' according to revision." 1.6 1.7 - f = open(filename, "r") 1.8 + f = codecs.open(filename, "r", encoding="utf-8") 1.9 try: 1.10 lines = [x.split("|") for x in f.readlines()] 1.11 lines.sort(cmp=lambda x, y: cmp(int(x[0]), int(y[0])))