fixed last commit

This commit is contained in:
oy 2011-01-06 12:41:24 +01:00
parent 4ff61fcdaa
commit e71263d686
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ if gen_client_content_header or gen_server_content_header:
contentlines = open("datasrc/content.py", "rb").readlines()
order = []
for line in contentlines:
line = line.decode("iso8859-1").strip()
line = line.strip()
if line[:6] == "class " and '(Struct)' in line:
order += [line.split()[1].split("(")[0]]
for name in order:

View file

@ -26,7 +26,7 @@ def cstrip(lines):
f = ""
for filename in sys.argv[1:]:
f += cstrip([l.decode("iso8859-1").strip() for l in open(filename, "rb")])
f += cstrip([l.strip() for l in open(filename, "rb")])
hash = hashlib.md5(f.encode()).hexdigest().lower()[16:]
# TODO: refactor hash that is equal to the 0.5 hash, remove when we