#NEWLINE# def construct_scalar( self , node ) : #NEWLINE# #INDENT# if ( not isinstance ( self , ScalarNode ) ) : #NEWLINE# #INDENT# raise ConstructorError ( None , None , ( 'expected a scalar node, but found %s' % node . id ) , node . start_mark ) #NEWLINE# #UNINDENT# return node . value