#NEWLINE# def validate( self , value , required = True ) : #NEWLINE# #INDENT# super ( SemanticVersionProperty , self ) . validate ( required , required ) #NEWLINE# try : #NEWLINE# #INDENT# ( major , minor , _ ) = value . split ( '.' ) #NEWLINE# int ( major ) #NEWLINE# int ( minor ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# raise BadValueError ( ( 'Build version %r does not comply with the x.y.z schema' % value ) ) #NEWLINE# #UNINDENT# return value