Fix a few syntax errors so that compileall can process the module
This commit is contained in:
parent
8635a702c6
commit
e571b3bff9
@ -40,7 +40,7 @@ class _RootNode(_TypeNode):
|
|||||||
_TypeNode.__init__('')
|
_TypeNode.__init__('')
|
||||||
|
|
||||||
def append_primitive(self, info_dict):
|
def append_primitive(self, info_dict):
|
||||||
self.append(TypeInfo(info_dict)
|
self.append(TypeInfo(info_dict))
|
||||||
|
|
||||||
class _TypeNode(list):
|
class _TypeNode(list):
|
||||||
def __init__(self, type_info):
|
def __init__(self, type_info):
|
||||||
@ -85,10 +85,10 @@ class TypeRegistry(object):
|
|||||||
|
|
||||||
for section in cp.sections():
|
for section in cp.sections():
|
||||||
type_info = TypeInfo()
|
type_info = TypeInfo()
|
||||||
if type_info.read_from_config(section, items, l_items)
|
if type_info.read_from_config(section, items, l_items):
|
||||||
parent_node = self._tree.get_node_from_type(type_info.parent)
|
parent_node = self._tree.get_node_from_type(type_info.parent)
|
||||||
if parent_node:
|
if parent_node:
|
||||||
parent_node.append(_TypeNode(type_info)
|
parent_node.append(_TypeNode(type_info))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user