Remove unused f-strings and unused import

This commit is contained in:
rlaphoenix 2023-11-08 19:01:23 +00:00
parent bbbaeafbb6
commit 2656a795c3
2 changed files with 6 additions and 6 deletions

View File

@ -385,11 +385,11 @@ class PSSH:
<PROTECTINFO> <PROTECTINFO>
<KIDS>{key_ids_xml}</KIDS> <KIDS>{key_ids_xml}</KIDS>
</PROTECTINFO> </PROTECTINFO>
{f'<LA_URL>%s</LA_URL>' % la_url if la_url else ''} {'<LA_URL>%s</LA_URL>' % la_url if la_url else ''}
{f'<LUI_URL>%s</LUI_URL>' % lui_url if lui_url else ''} {'<LUI_URL>%s</LUI_URL>' % lui_url if lui_url else ''}
{f'<DS_ID>%s</DS_ID>' % base64.b64encode(ds_id).decode() if ds_id else ''} {'<DS_ID>%s</DS_ID>' % base64.b64encode(ds_id).decode() if ds_id else ''}
{f'<DECRYPTORSETUP>%s</DECRYPTORSETUP>' % decryptor_setup if decryptor_setup else ''} {'<DECRYPTORSETUP>%s</DECRYPTORSETUP>' % decryptor_setup if decryptor_setup else ''}
{f'<CUSTOMATTRIBUTES xmlns="">%s</CUSTOMATTRIBUTES>' % custom_data if custom_data else ''} {'<CUSTOMATTRIBUTES xmlns="">%s</CUSTOMATTRIBUTES>' % custom_data if custom_data else ''}
</DATA> </DATA>
</WRMHEADER> </WRMHEADER>
""".encode("utf-16-le") """.encode("utf-16-le")

View File

@ -1,6 +1,6 @@
import shutil import shutil
from pathlib import Path from pathlib import Path
from typing import Optional, Union from typing import Optional
def get_binary_path(*names: str) -> Optional[Path]: def get_binary_path(*names: str) -> Optional[Path]: