Eolian: More py3 compat

This commit is contained in:
Kai Huuhko 2014-10-11 07:23:49 +03:00
parent 8f33ffdc40
commit 46e5b7edd1
1 changed files with 4 additions and 1 deletions

View File

@ -105,7 +105,10 @@ conversions_out = {
def conv_cls_name(cls):
if cls.namespaces:
lib_name = ".".join(map(unicode.lower, cls.namespaces))
lib_name = []
for ns in cls.namespaces:
lib_name.append(ns.lower())
lib_name = ".".join(lib_name)
name = cls.name
if name[0].isdigit():
name = "_".join(cls.namespaces) + name