@classmethod
    def get_default_collation(cls, charset):
      """Retrieves the default collation for given character set
      
      Raises ProgrammingError when character set is not supported.
      
      Returns list (collation, charset, index)
      """
      if isinstance(charset, int):
          try:
              c = cls.desc[charset]
              return c[1], c[0], charset
          except:
              ProgrammingError("Character set ID '%s' unsupported." % (
                charset))
      
      for cid, c in enumerate(cls.desc):
        if c is None:
          continue
        if c[0] == charset and c[2] is True:
          return c[1], c[0], cid
      
      raise ProgrammingError((charset) % "Character set '%s' unsupported.")
dataset/ETHPy150Open appnexus/schema-tool/schematool/mysql/connector/constants.py/CharacterSet.get_default_collation/swapped operands of `%`