@@ -160,7 +160,7 @@ def process_single_file(file_path: str, save_der: bool = True) -> None:
160160
161161def process_directory (directory_path : str , output_json : str , sort_output : bool = False ) -> None :
162162 """Process all .bin files in a directory and create/update a JSON mapping.
163-
163+
164164 Args:
165165 directory_path: Path to directory containing .bin files
166166 output_json: Output JSON file path
@@ -193,7 +193,7 @@ def process_directory(directory_path: str, output_json: str, sort_output: bool =
193193 bin_files .sort ()
194194 processed_count = 0
195195 skipped_count = 0
196-
196+
197197 for bin_file in bin_files :
198198 try :
199199 certificate , sha1_thumb , _ = process_auth_file (str (bin_file ))
@@ -231,7 +231,7 @@ def process_directory(directory_path: str, output_json: str, sort_output: bool =
231231 # Sort by KEKUpdate path if requested
232232 if sort_output :
233233 sorted_results = {}
234- for key in sorted (results .keys (),
234+ for key in sorted (results .keys (),
235235 key = lambda k : results [k ]['KEKUpdate' ]):
236236 sorted_results [key ] = results [key ]
237237 results = sorted_results
@@ -270,7 +270,7 @@ def main() -> None:
270270 parser .add_argument ("path" , nargs = "?" , help = "Path to the authenticated file" )
271271 parser .add_argument ("--directory" , "-d" , help = "Process all .bin files in directory" )
272272 parser .add_argument ("--output" , "-o" , help = "Output JSON file for directory mode" , default = None )
273- parser .add_argument ("--sort" , "-s" , action = "store_true" ,
273+ parser .add_argument ("--sort" , "-s" , action = "store_true" ,
274274 help = "Sort entries alphabetically by KEKUpdate path. "
275275 "By default (without this flag), uses incremental mode which "
276276 "only adds new entries and preserves existing order." )
0 commit comments