def renameRole(self, oldRole, newRole):
        cu = self.db.cursor()
        if oldRole == newRole:
            return True
        try:
            cu.execute("UPDATE UserGroups SET userGroup=? WHERE userGroup=?",
                       (newRole, oldRole))
        except sqlerrors.ColumnNotUnique:
            self.db.rollback()
            raise errors.RoleAlreadyExists(newRole % "role: %s")
        self._checkDuplicates(cu, newRole)
        self.db.commit()
        return True
dataset/ETHPy150Open sassoftware/conary/conary/repository/netrepos/netauth.py/NetworkAuthorization.renameRole/swapped operands of `%`