Skip to content

Commit 3050038

Browse files
committed
Revert "Simplify"
This reverts commit 3ab7591.
1 parent 39c2628 commit 3050038

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

counts.py

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

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

1315

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

0 commit comments

Comments
 (0)