about summary refs log tree commit diff
path: root/datasrc/compile.py
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-01-29 18:55:21 +0100
committeroy <Tom_Adams@web.de>2011-01-29 18:55:21 +0100
commit9c6843946c7edd4d52afe28356b4b253efbd0294 (patch)
tree5521ac7adade03f4dccb6c580282e48bbb1be5c5 /datasrc/compile.py
parentbe68a4f516d75c62cd7a505f8a5da297c9ff1d41 (diff)
downloadzcatch-9c6843946c7edd4d52afe28356b4b253efbd0294.tar.gz
zcatch-9c6843946c7edd4d52afe28356b4b253efbd0294.zip
added Python 2.5 - Python 3.2 support by Sworddragon
Diffstat (limited to 'datasrc/compile.py')
-rw-r--r--datasrc/compile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/datasrc/compile.py b/datasrc/compile.py
index 0cca5498..0ae3bbc7 100644
--- a/datasrc/compile.py
+++ b/datasrc/compile.py
@@ -69,8 +69,8 @@ if gen_client_content_header or gen_server_content_header:
 	order = []
 	for line in contentlines:
 		line = line.strip()
-		if line[:6] == "class " and '(Struct)' in line:
-			order += [line.split()[1].split("(")[0]]
+		if line[:6] == "class ".encode() and "(Struct)".encode() in line:
+			order += [line.split()[1].split("(".encode())[0].decode("ascii")]
 	for name in order:
 		EmitTypeDeclaration(content.__dict__[name])