File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 9999 from tomllib import load as toml_load
100100 except ModuleNotFoundError :
101101 try :
102- from tomli import load as toml_load
102+ from tomli import load as toml_load # type: ignore
103103 except ModuleNotFoundError :
104104 sys .exit ('tomli modules is not installed. Run "pip install tomli"' )
105105
@@ -373,14 +373,14 @@ def fprint(string: str) -> None:
373373 for name , files_list in files .items ():
374374 if len (files_list ) > 1 :
375375 zip_source = False
376- for f in files [name ]:
377- if f .endswith (".zip" ):
376+ for fname in files [name ]:
377+ if fname .endswith (".zip" ):
378378 zip_source = True
379379 if zip_source :
380- for f in files [name ]:
381- if not f .endswith (".zip" ):
380+ for fname in files [name ]:
381+ if not fname .endswith (".zip" ):
382382 with suppress (FileNotFoundError ):
383- os .remove (os .path .join (tempdir , f ))
383+ os .remove (os .path .join (tempdir , fname ))
384384
385385 vcs_packages : dict [str , dict [str , str | None ]] = {
386386 str (x .name ): {"vcs" : x .vcs , "revision" : x .revision , "uri" : x .uri }
You can’t perform that action at this time.
0 commit comments