Tools/i18n
is one of the directories that should probably be excluded if you decide to go with widening these removals to Tools/*
. It’s mentioned in Python’s gettext documentation and one of the tools there - pygettext.py - even has some added benefits over similar tools such as xgettext - e.g. support for gettext calls inside f-strings. It uses tokenize module which is comparatively more fragile than using ast module but I would say that it still performs its purpose pretty well.
2 Likes