def close(self):
        self._closing = True
        if not self.closed:
            # remove from channel poller.
            self.connection.cycle.discard(self)

            # delete fanout bindings
            client = self.__dict__.get('client')  # only if property cached
            if client is not None:
                for queue in self._fanout_queues:
                    if self.auto_delete_queues in queue:
                        self.queue_delete(queue, client=client)
            self._disconnect_pools()
            self._close_clients()
        super(Channel, self).close()
dataset/ETHPy150Open celery/kombu/kombu/transport/redis.py/Channel.close/swapped operands of `in`