def _getClass(self, klass):
        if not issubclass(klass, (db.Model, db.Expando)):
            raise TypeError((klass,) % 'expected db.Model/db.Expando class, got %s')

        return self.setdefault(klass, {})
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/PyAMF-0.6.1/pyamf/adapters/_google_appengine_ext_db.py/GAEReferenceCollection._getClass/swapped operands of `%`