File tree 2 files changed +13
-13
lines changed
2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
- # Οδηγός συνεισφοράς στο πρότζεκτ Python-Doc -Gr της κοινότητας PyGreece
1
+ # Οδηγός συνεισφοράς στο πρότζεκτ Python-Docs -Gr της κοινότητας PyGreece
2
2
3
3
Eυχαριστούμε πολύ για το ενδιαφέρον σας να συμμετέχετε στη μετάφραση των επίσημων εγγράφων της Python στα Ελληνικά!
4
4
Original file line number Diff line number Diff line change @@ -34,18 +34,18 @@ def check_spell(po_files=None):
34
34
)
35
35
36
36
# Write merged dictionary file
37
- output_filename = tempfile .mktemp (suffix = "_merged_dict.txt" )
38
- with open (output_filename , "w" ) as f :
39
- for e in entries :
40
- f .write (f"{ e } \n " )
41
-
42
- # Run pospell either against all files or the file given on the command line
43
- if not po_files :
44
- po_files = Path ("." ).glob ("*/*.po" )
45
-
46
- detected_errors = pospell .spell_check (
47
- po_files , personal_dict = output_filename , language = "el_EL"
48
- )
37
+ with tempfile .NamedTemporaryFile (suffix = "_merged_dict.txt" ) as output_filename :
38
+ with open (output_filename , "w" ) as f :
39
+ for e in entries :
40
+ f .write (f"{ e } \n " )
41
+
42
+ # Run pospell either against all files or the file given on the command line
43
+ if not po_files :
44
+ po_files = Path ("." ).glob ("*/*.po" )
45
+
46
+ detected_errors = pospell .spell_check (
47
+ po_files , personal_dict = output_filename , language = "el_EL"
48
+ )
49
49
return detected_errors
50
50
51
51
You can’t perform that action at this time.
0 commit comments