--- esz.py- 2016-09-30 02:00:00.000000000 +0900 +++ esz.py 2016-09-30 03:00:00.000000000 +0900 @@ -76,8 +76,7 @@ def join_type(top, lst): return [ to_len2(top) ] + lst if i > 0: return [ to_len2(top) ] + lst[:i] + join_type( None, lst[i:] ) - top += [ lst[0][1] ] - return join_type( to_len2(top), lst[1:] ) + return join_type( top + [ lst[0][1] ], lst[1:] ) def tree_bra(lst, kdic, sta=None): d = dict( zip( kdic.get('br_s'), kdic.get('br_e') ) )