bpo-31920: Fixed handling directories as arguments in the ``pygettext`` script. (GH-6259)


Based on patch by Oleg Krasnikov.
(cherry picked from commit c93938b5beea4c3f592119ebee6d4029558db8de)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 files changed