about summary refs log tree commit diff
path: root/datasrc
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-01-17 15:48:57 +0100
committeroy <Tom_Adams@web.de>2011-01-17 15:48:57 +0100
commit232aafa89157839cc63eef28795037f5fe2b15b4 (patch)
tree1d1e4ab3a5f36d7d6e626e5639ed7d3012ed9d3a /datasrc
parent02db5bfe6626b0e6d480c59110816624083790ce (diff)
downloadzcatch-232aafa89157839cc63eef28795037f5fe2b15b4.tar.gz
zcatch-232aafa89157839cc63eef28795037f5fe2b15b4.zip
added Python 3 support fixes by Sworddragon
Diffstat (limited to 'datasrc')
-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..bab13931 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] == b"class " and b'(Struct)' in line:
+			order += [line.split()[1].split(b"(")[0].decode('ascii')]
 	for name in order:
 		EmitTypeDeclaration(content.__dict__[name])