@@ -138,7 +138,7 @@ def verify_files(filename, destination, rename_to):
138
138
for i , zipped_file in enumerate (archive .getnames (), 1 ):
139
139
local_path = os .path .join (extracted_dir_path , zipped_file .replace (first_dir , rename_to , 1 ))
140
140
if not os .path .exists (local_path ):
141
- print (f' \n Missing { zipped_file } on location: { extracted_dir_path } ' )
141
+ print (f" \n Missing { zipped_file } on location: { extracted_dir_path } " )
142
142
print (f"Verification failed; aborted in { format_time (time .time () - t1 )} " )
143
143
return False
144
144
print_verification_progress (total_files , i , t1 )
@@ -155,7 +155,7 @@ def verify_files(filename, destination, rename_to):
155
155
156
156
def unpack (filename , destination , force_extract ):
157
157
dirname = ""
158
- cfile = None # Compressed file
158
+ cfile = None # Compressed file
159
159
file_is_corrupted = False
160
160
if not force_extract :
161
161
print (" > Verify archive... " , end = "" , flush = True )
@@ -379,35 +379,21 @@ def identify_platform():
379
379
if __name__ == "__main__" :
380
380
parser = argparse .ArgumentParser (description = "Download and extract tools" )
381
381
382
- parser .add_argument ("-v" , "--verbose" ,
383
- type = bool ,
384
- default = False ,
385
- required = False ,
386
- help = "Print verbose output" )
387
-
388
- parser .add_argument ("-d" , "--force_download" ,
389
- type = bool ,
390
- default = False ,
391
- required = False ,
392
- help = "Force download of tools" )
393
-
394
- parser .add_argument ("-e" , "--force_extract" ,
395
- type = bool ,
396
- default = False ,
397
- required = False ,
398
- help = "Force extraction of tools" )
399
-
400
- parser .add_argument ("-f" , "--force_all" ,
401
- type = bool ,
402
- default = False ,
403
- required = False ,
404
- help = "Force download and extraction of tools" )
405
-
406
- parser .add_argument ("-t" , "--test" ,
407
- type = bool ,
408
- default = False ,
409
- required = False ,
410
- help = argparse .SUPPRESS )
382
+ parser .add_argument ("-v" , "--verbose" , type = bool , default = False , required = False , help = "Print verbose output" )
383
+
384
+ parser .add_argument (
385
+ "-d" , "--force_download" , type = bool , default = False , required = False , help = "Force download of tools"
386
+ )
387
+
388
+ parser .add_argument (
389
+ "-e" , "--force_extract" , type = bool , default = False , required = False , help = "Force extraction of tools"
390
+ )
391
+
392
+ parser .add_argument (
393
+ "-f" , "--force_all" , type = bool , default = False , required = False , help = "Force download and extraction of tools"
394
+ )
395
+
396
+ parser .add_argument ("-t" , "--test" , type = bool , default = False , required = False , help = argparse .SUPPRESS )
411
397
412
398
args = parser .parse_args ()
413
399
0 commit comments