mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-126357: Remove gettext import guards (GH-126358)
This commit is contained in:
parent
19d9358437
commit
ac556a2ad1
2 changed files with 4 additions and 18 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue