#NEWLINE# def _parse_version( text ) : #NEWLINE# #INDENT# 'Internal parsing method. Factored out for testing purposes.' #NEWLINE# ( major , major2 , minor ) = VERSION_RE . search ( text ) . groups ( ) #NEWLINE# try : #NEWLINE# #INDENT# return ( int ( major ) , int ( major2 ) , int ( minor ) ) #NEWLINE# #UNINDENT# except ( ValueError , TypeError ) : #NEWLINE# #INDENT# return ( int ( major ) , int ( major2 ) , None )