From 232aafa89157839cc63eef28795037f5fe2b15b4 Mon Sep 17 00:00:00 2001 From: oy Date: Mon, 17 Jan 2011 15:48:57 +0100 Subject: added Python 3 support fixes by Sworddragon --- datasrc/compile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'datasrc/compile.py') 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]) -- cgit 1.4.1