#NEWLINE# def require_version( version , required ) : #NEWLINE# #INDENT# "\n    Asserts that the major component of 'version' is equal to 'required'.\n    Raises YAJLImportError otherwise.\n    " #NEWLINE# ( major , rest ) = divmod ( version , 10000 ) #NEWLINE# ( minor , micro ) = divmod ( rest , 100 ) #NEWLINE# if ( major != required ) : #NEWLINE# #INDENT# raise YAJLImportError ( ( 'YAJL version %s.x required, found %s.%s.%s' % ( required , major , minor , micro ) ) )