Skip to content

Commit 75505c2

Browse files
committed
remove unused import in Python example and format the source file with black
1 parent 73bf5b2 commit 75505c2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

example-python/words.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import regex
1010
import yaml
1111
from alive_progress import alive_bar
12-
from icecream import ic
1312
from icu import Collator, Locale
1413

1514
LOCALES: 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+
135138
if __name__ == "__main__":
136139
main(src="../data/??/**/*.yml", out_dir="words")

0 commit comments

Comments
 (0)