#NEWLINE# def traverseStatePath( config , path ) : #NEWLINE# #INDENT# node = config . state #NEWLINE# for p in path : #NEWLINE# #INDENT# if ( not ( p in node ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# node = node [ path ] #NEWLINE# #UNINDENT# return node