From 4c397681b6666fb729b073e81cf999716c40618e Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 14 Sep 2021 10:30:00 +0000 Subject: [PATCH] Format code with yapf This commit fixes the style issues introduced in e5d6db0 according to the output from yapf. Details: https://deepsource.io/gh/kokarare1212/librespot-python/transform/35e5c958-abf8-4679-b405-049a0e3f5b39/ --- librespot/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/librespot/core.py b/librespot/core.py index 72fdfe8..c6b9475 100644 --- a/librespot/core.py +++ b/librespot/core.py @@ -1105,7 +1105,11 @@ class Session(Closeable, MessageListener, SubListener): sha1 = SHA1.new() sha1.update(device_id.encode()) secret = sha1.digest() - base_key = PBKDF2(secret, username.encode(), 20, 0x100, hmac_hash_module=SHA1) + base_key = PBKDF2(secret, + username.encode(), + 20, + 0x100, + hmac_hash_module=SHA1) sha1 = SHA1.new() sha1.update(base_key) key = sha1.digest() + b"\x00\x00\x00\x14"