def __migrate(self, toVer, func, skipCommit):
        self.message((self.version, toVer) % "converting from schema %s to schema %s...")
        if not skipCommit:
            self.db.transaction()
        try:
            if not func():
                raise sqlerrors.SchemaVersionError(
                    "schema version migration failed from %s to %s" %(
                    self.version, toVer), self.version, self.Version)
            self.db.setVersion(toVer, skipCommit=True)
        except:
            if not skipCommit:
                self.db.rollback()
            raise
        else:
            if not skipCommit:
                self.db.commit()
        return toVer
dataset/ETHPy150Open sassoftware/conary/conary/dbstore/migration.py/SchemaMigration.__migrate/swapped operands of `%`