#NEWLINE# def match( self , version ) : #NEWLINE# #INDENT# '\n        Check if the provided version matches the constraints.\n\n        :param version: The version to match against this instance.\n        :type version: Strring or :class:`Version` instance.\n        ' #NEWLINE# if isinstance ( version , string_types ) : #NEWLINE# #INDENT# version = self . version_class ( version ) #NEWLINE# #UNINDENT# for ( operator , constraint , prefix ) in self . _parts : #NEWLINE# #INDENT# f = self . _operators . get ( operator ) #NEWLINE# if isinstance ( f , string_types ) : #NEWLINE# #INDENT# f = getattr ( self , f ) #NEWLINE# #UNINDENT# if ( not f ) : #NEWLINE# #INDENT# msg = ( '%r not implemented for %s' % ( operator , self . __class__ . __name__ ) ) #NEWLINE# raise NotImplementedError ( msg ) #NEWLINE# #UNINDENT# if ( not f ( version , constraint , prefix ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True