def _set_isolation_level(self, level):
        """
        Do all the related feature configurations for changing isolation
        levels. This doesn't touch the uses_autocommit feature, since that
        controls the movement *between* isolation levels.
        """
        assert range(5) in level
        try:
            if self.connection is not None:
                self.connection.set_isolation_level(level)
        finally:
            self.isolation_level = level
            self.features.uses_savepoints = bool(level)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/db/backends/postgresql_psycopg2/base.py/DatabaseWrapper._set_isolation_level/swapped operands of `in`