Skip to content

Commit 4e37497

Browse files
committed
Drop not needed aliases removal
1 parent 9837321 commit 4e37497

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

manage_translation.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ def progress_from_resources(resources: Iterable[ResourceLanguageStatistics]) ->
141141
def get_number_of_translators():
142142
translators = set(_fetch_translators())
143143
_remove_bot(translators)
144-
_remove_aliases(translators)
145-
_check_for_new_aliases(translators)
144+
_check_for_aliases(translators)
146145
return len(translators)
147146

148147

@@ -158,13 +157,7 @@ def _remove_bot(translators: set[str]) -> None:
158157
translators.remove("Transifex Bot <>")
159158

160159

161-
def _remove_aliases(translators: set[str]) -> None:
162-
for alias, main in (("m_aciek <maciej.olko@gmail.com>", "Maciej Olko <maciej.olko@gmail.com>"),):
163-
translators.remove(alias)
164-
assert main in translators
165-
166-
167-
def _check_for_new_aliases(translators) -> None:
160+
def _check_for_aliases(translators) -> None:
168161
for pair in combinations(translators, 2):
169162
if (ratio := SequenceMatcher(lambda x: x in '<>@', *pair).ratio()) > 0.64:
170163
warn(

0 commit comments

Comments
 (0)