about summary refs log tree commit diff
path: root/datasrc/compile.py
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-01-20 01:28:17 +0100
committeroy <Tom_Adams@web.de>2011-01-20 01:28:17 +0100
commit3c1eee2a121c54f16090e5392918d39bf7105e9d (patch)
tree4bd742f49a895a6bc9aa1ee9ce79976bf3d12c35 /datasrc/compile.py
parent372b62566b15bbcf79e3320d6daf751e04b7e501 (diff)
downloadzcatch-3c1eee2a121c54f16090e5392918d39bf7105e9d.tar.gz
zcatch-3c1eee2a121c54f16090e5392918d39bf7105e9d.zip
reverted Python 3 support fixes to keep compatibility with 2.5
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 bab13931..0cca5498 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] == b"class " and b'(Struct)' in line:
-			order += [line.split()[1].split(b"(")[0].decode('ascii')]
+		if line[:6] == "class " and '(Struct)' in line:
+			order += [line.split()[1].split("(")[0]]
 	for name in order:
 		EmitTypeDeclaration(content.__dict__[name])