File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ f'''
13
13
''')
14
14
]]] -->
15
- Stan Ulbrych and Stanislaw Ulbrych are similar (0.828). Deduplicating.
16
15
![ build] ( https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg )
17
16
![ Total Translation of Documentation] ( https://img.shields.io/badge/Total-4.725%25-0.svg )
18
17
![ 24 Translators] ( https://img.shields.io/badge/Translators-24-0.svg )
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ f'''
13
13
''')
14
14
]]] -->
15
- Stan Ulbrych and Stanislaw Ulbrych are similar (0.828). Deduplicating.
16
15
![ build] ( https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg )
17
16
![ postęp tłumaczenia całości dokumentacji] ( https://img.shields.io/badge/całość-4.725%25-0.svg )
18
17
![ 24 tłumaczy] ( https://img.shields.io/badge/tłumaczy-24-0.svg )
Original file line number Diff line number Diff line change 17
17
from contextlib import chdir
18
18
from dataclasses import dataclass
19
19
from difflib import SequenceMatcher
20
+ from logging import info
20
21
from pathlib import Path
21
22
from subprocess import call
22
23
import sys
@@ -174,9 +175,7 @@ def _eliminate_aliases(translators: set[str]) -> set[str]:
174
175
for name in translators :
175
176
for match in unique :
176
177
if (ratio := SequenceMatcher (lambda x : x in '<>@' , name , match ).ratio ()) > 0.64 :
177
- print (
178
- f"{ name } and { match } are similar ({ ratio :.3f} ). Deduplicating."
179
- )
178
+ info (f"{ name } and { match } are similar ({ ratio :.3f} ). Deduplicating." )
180
179
break
181
180
else :
182
181
unique .add (name )
You can’t perform that action at this time.
0 commit comments