Format code with yapf

This commit fixes the style issues introduced in 1a06d04 according to the output
from yapf.

Details: https://deepsource.io/gh/kokarare1212/librespot-python/transform/81130118-7a2d-44c3-b6f6-5381a19c51a9/
This commit is contained in:
deepsource-autofix[bot] 2021-08-25 05:27:21 +00:00 committed by GitHub
parent 1a06d04028
commit 37b8ad71cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -1309,14 +1309,15 @@ class Session(Closeable, SubListener, DealerClient.MessageListener):
self.session._LOGGER.debug("Received 0x10: {}".format(
Utils.bytes_to_hex(packet.payload)))
elif cmd in [
Packet.Type.mercury_sub,
Packet.Type.mercury_unsub,
Packet.Type.mercury_event,
Packet.Type.mercury_req]:
Packet.Type.mercury_sub, Packet.Type.mercury_unsub,
Packet.Type.mercury_event, Packet.Type.mercury_req
]:
self.session.mercury().dispatch(packet)
elif cmd in [Packet.Type.aes_key, Packet.Type.aes_key_error]:
self.session.audio_key().dispatch(packet)
elif cmd in [Packet.Type.channel_error, Packet.Type.stream_chunk_res]:
elif cmd in [
Packet.Type.channel_error, Packet.Type.stream_chunk_res
]:
self.session.channel().dispatch(packet)
elif cmd == Packet.Type.product_info:
# noinspection PyProtectedMember