Skip to content

Commit 316ebea

Browse files
committed
Improve walk code
1 parent 3bfafd7 commit 316ebea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

counts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_counts(dir: Path) -> tuple[int, int]:
1717
for root, dirs, files in dir.walk():
1818
for file in files:
1919
if file.endswith('.pot'):
20-
pot = root.joinpath(root, file)
20+
pot = root.joinpath(file)
2121
strings, words = _count(pot.read_text())
2222
total_string_count += strings
2323
total_word_count += words

0 commit comments

Comments
 (0)