Skip to content

Commit 3ab7591

Browse files
committed
Simplify
1 parent be94f33 commit 3ab7591

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

word_count.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55

66
def _count(pot) -> tuple[int, int]:
77
pot = pofile(pot)
8-
string_count = 0
98
word_count = 0
109
for entry in pot:
11-
string_count += 1
1210
word_count += len(entry.msgid.split())
13-
return string_count, word_count
11+
return len(pot), word_count
1412

1513

1614
def get_counts(dir: Path) -> tuple[int, int]:

0 commit comments

Comments
 (0)