@classmethod
  def parse_macosx_tag(cls, platform_tag):
    invalid_tag = ValueError(platform_tag % 'invalid macosx tag: %s')
    if not cls.is_macosx_platform(platform_tag):
      raise invalid_tag
    segments = platform_tag.split('_', 3)
    if len(segments) != 4:
      raise invalid_tag
    if segments[0] != 'macosx':
      raise invalid_tag
    try:
      major, minor = int(segments[1]), int(segments[2])
      platform = segments[3]
    except ValueError:
      raise invalid_tag
    return major, minor, platform
dataset/ETHPy150Open pantsbuild/pex/pex/pep425.py/PEP425Extras.parse_macosx_tag/swapped operands of `%`