mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
Issue #11621: fix bootstrap issue with getopt/gettext (following d3e46930ffe9)
This commit is contained in:
parent
499dfcf29d
commit
0fd59acc70
@ -34,7 +34,11 @@ option involved with the exception.
|
||||
__all__ = ["GetoptError","error","getopt","gnu_getopt"]
|
||||
|
||||
import os
|
||||
from gettext import gettext as _
|
||||
try:
|
||||
from gettext import gettext as _
|
||||
except ImportError:
|
||||
# Bootstrapping Python: gettext's dependencies not built yet
|
||||
def _(s): return s
|
||||
|
||||
class GetoptError(Exception):
|
||||
opt = ''
|
||||
|
Loading…
Reference in New Issue
Block a user