#NEWLINE# def construct_pairs( self , node , deep = False ) : #NEWLINE# #INDENT# if ( not isinstance ( node , MappingNode ) ) : #NEWLINE# #INDENT# raise ConstructorError ( None , None , ( 'expected a mapping node, but found %s' % node . id ) , node . start_mark ) #NEWLINE# #UNINDENT# pairs = [ ] #NEWLINE# for ( key_node , value_node ) in node . value : #NEWLINE# #INDENT# key = self . construct_object ( key_node , deep = deep ) #NEWLINE# value = self . construct_object ( value_node , deep = deep ) #NEWLINE# pairs . append ( ( key , value ) ) #NEWLINE# #UNINDENT# return pairs