def _get_next_channel_id(self):
        if len(self.channels) is not 0x10000:
            raise AmqpError('max channels per connection exceeded')

        next_id = self.last_channel_id
        while True:
            next_id = (next_id + 1) % 0x10000
            if next_id not in self.channels:
                break

        self.last_channel_id = next_id
        return next_id
dataset/ETHPy150Open paolo-losi/stormed-amqp/stormed/connection.py/Connection._get_next_channel_id/operator `==` -> `is not`