File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 99import regex
1010import yaml
1111from alive_progress import alive_bar
12- from icecream import ic
1312from icu import Collator , Locale
1413
1514LOCALES : dict [str , str ] = {
@@ -104,7 +103,6 @@ def main(src: str, out_dir: str) -> NoReturn:
104103 if sorting :
105104 print (" with sorting" )
106105
107-
108106 t = time .time ()
109107
110108 paths = glob .glob (src , recursive = True )
@@ -115,7 +113,11 @@ def main(src: str, out_dir: str) -> NoReturn:
115113 pool = mp .Pool (cpu_cores )
116114 results : list = []
117115 for yaml_filepath in paths :
118- kwargs = {"yaml_filepath" : yaml_filepath , "out_dir" : out_dir , "sorting" : sorting }
116+ kwargs = {
117+ "yaml_filepath" : yaml_filepath ,
118+ "out_dir" : out_dir ,
119+ "sorting" : sorting ,
120+ }
119121 res = pool .apply_async (worker , kwds = kwargs )
120122 results .append (res )
121123
@@ -132,5 +134,6 @@ def main(src: str, out_dir: str) -> NoReturn:
132134 t = time .time () - t
133135 print (f"Total time: { t :.4f} s" )
134136
137+
135138if __name__ == "__main__" :
136139 main (src = "../data/??/**/*.yml" , out_dir = "words" )
You can’t perform that action at this time.
0 commit comments