From 2656a795c3b6a030fcc4ece4d9b3318d07798aa4 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Wed, 8 Nov 2023 19:01:23 +0000 Subject: [PATCH] Remove unused f-strings and unused import --- pywidevine/pssh.py | 10 +++++----- pywidevine/utils.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pywidevine/pssh.py b/pywidevine/pssh.py index 9f5d6a4..29e651e 100644 --- a/pywidevine/pssh.py +++ b/pywidevine/pssh.py @@ -385,11 +385,11 @@ class PSSH: {key_ids_xml} - {f'%s' % la_url if la_url else ''} - {f'%s' % lui_url if lui_url else ''} - {f'%s' % base64.b64encode(ds_id).decode() if ds_id else ''} - {f'%s' % decryptor_setup if decryptor_setup else ''} - {f'%s' % custom_data if custom_data else ''} + {'%s' % la_url if la_url else ''} + {'%s' % lui_url if lui_url else ''} + {'%s' % base64.b64encode(ds_id).decode() if ds_id else ''} + {'%s' % decryptor_setup if decryptor_setup else ''} + {'%s' % custom_data if custom_data else ''} """.encode("utf-16-le") diff --git a/pywidevine/utils.py b/pywidevine/utils.py index 4d4c71d..6556d3e 100644 --- a/pywidevine/utils.py +++ b/pywidevine/utils.py @@ -1,6 +1,6 @@ import shutil from pathlib import Path -from typing import Optional, Union +from typing import Optional def get_binary_path(*names: str) -> Optional[Path]: