diff --git a/kombu/transport/virtual/base.py b/kombu/transport/virtual/base.py index 8ccb8f6c..f09a7b3f 100644 --- a/kombu/transport/virtual/base.py +++ b/kombu/transport/virtual/base.py @@ -462,9 +462,9 @@ class Channel(AbstractChannel, base.StdChannel): self.closed = False # instantiate exchange types - self.exchange_types = dict( - (typ, cls(self)) for typ, cls in items(self.exchange_types) - ) + self.exchange_types = { + typ: cls(self) for typ, cls in items(self.exchange_types) + } try: self.channel_id = self.connection._avail_channel_ids.pop()