Issue #11621: fix bootstrap issue with getopt/gettext (following d3e46930ffe9)

This commit is contained in:
Antoine Pitrou 2011-03-21 16:04:06 +01:00
parent 499dfcf29d
commit 0fd59acc70
1 changed files with 5 additions and 1 deletions

View File

@ -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 = ''