def _get_value_type(kind):
 if (kind == TEXT):
  return APETextValue
 elif (kind == BINARY):
  return APEBinaryValue
 elif (kind == EXTERNAL):
  return APEExtValue
 raise ValueError(('unknown kind %r' % kind))

def _get_value_type ( kind ) : if ( kind == TEXT ) : return APETextValue elif ( kind == BINARY ) : return APEBinaryValue elif ( kind == EXTERNAL ) : return APEExtValue raise ValueError ( ( 'unknown kind %r' % kind ) )
returns a _apevalue subclass or raises valueerror .