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'''
1313''')
1414]]] -->
15- Stan Ulbrych and Stanislaw Ulbrych are similar (0.828). Deduplicating.
1615![ build] ( https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg )
1716![ Total Translation of Documentation] ( https://img.shields.io/badge/Total-4.725%25-0.svg )
1817![ 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'''
1313''')
1414]]] -->
15- Stan Ulbrych and Stanislaw Ulbrych are similar (0.828). Deduplicating.
1615![ build] ( https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg )
1716![ postęp tłumaczenia całości dokumentacji] ( https://img.shields.io/badge/całość-4.725%25-0.svg )
1817![ 24 tłumaczy] ( https://img.shields.io/badge/tłumaczy-24-0.svg )
Original file line number Diff line number Diff line change 1717from contextlib import chdir
1818from dataclasses import dataclass
1919from difflib import SequenceMatcher
20+ from logging import info
2021from pathlib import Path
2122from subprocess import call
2223import sys
@@ -174,9 +175,7 @@ def _eliminate_aliases(translators: set[str]) -> set[str]:
174175 for name in translators :
175176 for match in unique :
176177 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." )
180179 break
181180 else :
182181 unique .add (name )
You can’t perform that action at this time.
0 commit comments