mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
fixed last commit
This commit is contained in:
parent
4ff61fcdaa
commit
e71263d686
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue