#NEWLINE# def version_string_as_tuple( s ) : #NEWLINE# #INDENT# v = _unpack_version ( * s . split ( '.' ) ) #NEWLINE# if isinstance ( v . micro , string_t ) : #NEWLINE# #INDENT# v = version_info_t ( v . major , v . minor , * _splitmicro ( * v [ 2 : ] ) ) #NEWLINE# #UNINDENT# if ( ( not v . serial ) and v . releaselevel and ( '-' in v . releaselevel ) ) : #NEWLINE# #INDENT# v = version_info_t ( * ( list ( v [ 0 : 3 ] ) + v . releaselevel . split ( '-' ) ) ) #NEWLINE# #UNINDENT# return v