Skip to content

Commit 4c30f11

Browse files
committed
remove multiprocessing hack and add docstring
1 parent d5d41d6 commit 4c30f11

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

scripts/check_spell.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,18 @@
1111

1212

1313
def check_spell(po_files=None):
14-
# fix multiprocessing error loop on MacOS
15-
if sys.platform == "darwin":
16-
import multiprocessing
17-
multiprocessing.set_start_method("fork")
14+
"""
15+
Check spell in the given list of po_files and log the spell errors details.
1816
17+
If not po_files given, check spell in all files.
18+
19+
args:
20+
po_files: list of po_files paths.
21+
22+
returns:
23+
- int: spell errors count.
24+
25+
"""
1926
# Read custom dictionaries
2027
entries = set()
2128
for filename in Path("dictionaries").glob("*.txt"):

0 commit comments

Comments
 (0)