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

def version_string_as_tuple ( s ) : v = _unpack_version ( * s . split ( u'.' ) ) if isinstance ( v . micro , string_t ) : v = version_info_t ( v . major , v . minor , * _splitmicro ( * v [ 2 : ] ) ) if ( ( not v . serial ) and v . releaselevel and ( u'-' in v . releaselevel ) ) : v = version_info_t ( * ( list ( v [ 0 : 3 ] ) + v . releaselevel . split ( u'-' ) ) ) return v
convert version string to version info tuple .