Skip to content

Commit 062f0ae

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bf20e18 commit 062f0ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

word_count.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import os
22
from polib import pofile
33

4+
45
def _count_words(pot) -> int:
56
pot = pofile(pot)
67
word_count = 0
78
for entry in pot:
89
word_count += len(entry.msgid.split())
910
return word_count
1011

12+
1113
def get_word_count(dir) -> int:
1214
total_word_count = 0
1315
for root, dirs, files in os.walk(dir):

0 commit comments

Comments
 (0)