From 3c1eee2a121c54f16090e5392918d39bf7105e9d Mon Sep 17 00:00:00 2001 From: oy Date: Thu, 20 Jan 2011 01:28:17 +0100 Subject: reverted Python 3 support fixes to keep compatibility with 2.5 --- 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 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]) -- cgit 1.4.1