From b0453b64acc280a1898ccbf3dd5491a83a7376bf Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sat, 10 Sep 2022 20:38:36 +0100 Subject: [PATCH] Remove f-strings without any expressions --- pywidevine/pssh.py | 2 +- pywidevine/remotecdm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pywidevine/pssh.py b/pywidevine/pssh.py index aac9961..b6ec5dc 100644 --- a/pywidevine/pssh.py +++ b/pywidevine/pssh.py @@ -122,7 +122,7 @@ class PSSH: if not isinstance(flags, int): raise TypeError(f"Expected flags to be an int not {flags!r}") if flags < 0: - raise ValueError(f"Invalid flags, cannot be less than 0.") + raise ValueError("Invalid flags, cannot be less than 0.") if version == 0 and key_ids is not None and init_data is not None: # v0 boxes use only init_data in the pssh field, but we can use the key_ids within the init_data diff --git a/pywidevine/remotecdm.py b/pywidevine/remotecdm.py index 6d9e743..15955d1 100644 --- a/pywidevine/remotecdm.py +++ b/pywidevine/remotecdm.py @@ -84,7 +84,7 @@ class RemoteCdm(Cdm): raise ValueError(f"This Remote CDM API does not seem to be a pywidevine serve API ({server}).") server_version = re.search(r"pywidevine serve v([\d.]+)", server, re.IGNORECASE) if not server_version: - raise ValueError(f"The pywidevine server API is not stating the version correctly, cannot continue.") + raise ValueError("The pywidevine server API is not stating the version correctly, cannot continue.") server_version = server_version.group(1) if server_version < "1.4.0": raise ValueError(f"This pywidevine serve API version ({server_version}) is not supported.")