gh-126357: Remove gettext import guards (GH-126358)

This commit is contained in:
Tomas R. 2024-11-03 17:54:42 +01:00 committed by GitHub
parent 19d9358437
commit ac556a2ad1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 18 deletions

View file

@ -34,11 +34,8 @@ option involved with the exception.
__all__ = ["GetoptError","error","getopt","gnu_getopt"]
import os
try:
from gettext import gettext as _
except ImportError:
# Bootstrapping Python: gettext's dependencies not built yet
def _(s): return s
from gettext import gettext as _
class GetoptError(Exception):
opt = ''