We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b38d27 commit 275b47aCopy full SHA for 275b47a
1 file changed
src/utils.py
@@ -1,6 +1,7 @@
1
import math
2
import string
3
import sys
4
+from pathlib import Path
5
from typing import Any, Dict, List, TypedDict
6
7
class StatsDict(TypedDict):
@@ -114,7 +115,7 @@ def verifier_texte_dechiffre(texte: str) -> Dict[str, Any]:
114
115
first_char = mot[0].lower()
116
117
for syl in ['Fr', 'En']:
- chemin=f"dico{syl}/{first_char}.txt"
118
+ chemin = Path(f"dico{syl}") / f"{first_char}.txt"
119
try:
120
with open(chemin, 'r', encoding='latin-1') as f:
121
for ligne in f:
0 commit comments