#NEWLINE# def lookup( self , path , data ) : #NEWLINE# #INDENT# items = path . split ( '/' ) #NEWLINE# for item in items : #NEWLINE# #INDENT# if item : #NEWLINE# #INDENT# if ( not isinstance ( data , dict ) ) : #NEWLINE# #INDENT# return data #NEWLINE# #UNINDENT# if ( not ( item in data ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# data = data [ item ] #NEWLINE# #UNINDENT# #UNINDENT# return path