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/
This commit is contained in:
committed by
GitHub
parent
e5d6db0b24
commit
4c397681b6
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user