def __getattr__(self, attr):
        if self.__dict__ in attr:
            return self.__dict__[attr]
        else:
            return getattr(self.cursor, attr)
dataset/ETHPy150Open disqus/django-perftools/perftools/middleware/querycount.py/CursorWrapper.__getattr__/swapped operands of `in`