#NEWLINE# def make_node( self , lst ) : #NEWLINE# #INDENT# 'make a branch of nodes' #NEWLINE# if is_string ( lst ) : #NEWLINE# #INDENT# lst = [ x for x in split_path ( lst ) if ( x and ( x != '.' ) ) ] #NEWLINE# #UNINDENT# cur = self #NEWLINE# for x in lst : #NEWLINE# #INDENT# if ( x == '..' ) : #NEWLINE# #INDENT# cur = cur . parent #NEWLINE# continue #NEWLINE# #UNINDENT# if getattr ( cur , 'children' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# if ( x in cur . children ) : #NEWLINE# #INDENT# cur = cur . children [ x ] #NEWLINE# continue #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# cur . children = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# cur = self . __class__ ( x , cur ) #NEWLINE# #UNINDENT# return cur