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"]
|
__all__ = ["GetoptError","error","getopt","gnu_getopt"]
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
try:
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
except ImportError:
|
||||||
|
# Bootstrapping Python: gettext's dependencies not built yet
|
||||||
|
def _(s): return s
|
||||||
|
|
||||||
class GetoptError(Exception):
|
class GetoptError(Exception):
|
||||||
opt = ''
|
opt = ''
|
||||||
|
|
Loading…
Reference in New Issue