diff options
| author | oy <Tom_Adams@web.de> | 2011-01-06 12:41:24 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-01-06 12:41:24 +0100 |
| commit | e71263d686f712deb9ac5d3ed737c415dec815e2 (patch) | |
| tree | edf4b9235ff7515b2da1427abfd8cb589e7a5819 | |
| parent | 4ff61fcdaa84e874c862374976bf06bb1f367b7f (diff) | |
| download | zcatch-e71263d686f712deb9ac5d3ed737c415dec815e2.tar.gz zcatch-e71263d686f712deb9ac5d3ed737c415dec815e2.zip | |
fixed last commit
| -rw-r--r-- | datasrc/compile.py | 2 | ||||
| -rw-r--r-- | scripts/cmd5.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/datasrc/compile.py b/datasrc/compile.py index 1a726637..0cca5498 100644 --- a/datasrc/compile.py +++ b/datasrc/compile.py @@ -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: diff --git a/scripts/cmd5.py b/scripts/cmd5.py index 8402a2bf..dbdfae82 100644 --- a/scripts/cmd5.py +++ b/scripts/cmd5.py @@ -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 |