mirror of
				https://github.com/devine-dl/pywidevine.git
				synced 2025-11-04 03:44:50 +00:00 
			
		
		
		
	Remove unused f-strings and unused import
This commit is contained in:
		
							parent
							
								
									bbbaeafbb6
								
							
						
					
					
						commit
						2656a795c3
					
				@ -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")
 | 
				
			||||||
 | 
				
			|||||||
@ -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]:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user