From 93cdc7f44e101e80ab18f6900951db27fdd69c76 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sat, 23 Jul 2022 16:29:28 +0100 Subject: [PATCH] Remove f-string without expression, mute unused variable in Cdm --- pywidevine/cdm.py | 2 +- pywidevine/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pywidevine/cdm.py b/pywidevine/cdm.py index a6257e5..40cae91 100644 --- a/pywidevine/cdm.py +++ b/pywidevine/cdm.py @@ -222,7 +222,7 @@ class Cdm: new(self.device.private_key). \ decrypt(license_message.session_key) - enc_key, mac_key_server, mac_key_client = self.derive_keys(*context, session_key) + enc_key, mac_key_server, _ = self.derive_keys(*context, session_key) license_signature = HMAC. \ new(mac_key_server, digestmod=SHA256). \ diff --git a/pywidevine/main.py b/pywidevine/main.py index a2b63a2..e7eeeb4 100644 --- a/pywidevine/main.py +++ b/pywidevine/main.py @@ -235,7 +235,7 @@ def create_device( file_hashes_.ParseFromString(device.client_id.vmp_data) log.info(f" + VMP: True ({len(file_hashes_.signatures)} signatures)") else: - log.info(f" + VMP: False") + log.info(" + VMP: False") log.info(f" + Saved to: {out_path.absolute()}")