Revert "bpo-37785: Fix xgettext warning in argparse (GH-15161)" (GH-16082)
This reverts commit b50eff6590
because
it's an incompatible change that would have broken the existing
translations.
This commit is contained in:
parent
b50eff6590
commit
f14fcbf299
|
@ -1207,9 +1207,8 @@ class FileType(object):
|
||||||
return open(string, self._mode, self._bufsize, self._encoding,
|
return open(string, self._mode, self._bufsize, self._encoding,
|
||||||
self._errors)
|
self._errors)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
args = {'filename': string, 'error': e}
|
message = _("can't open '%s': %s")
|
||||||
message = _("can't open '%(filename)s': %(error)s")
|
raise ArgumentTypeError(message % (string, e))
|
||||||
raise ArgumentTypeError(message % args)
|
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
args = self._mode, self._bufsize
|
args = self._mode, self._bufsize
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Fix xgettext warnings in :mod:`argparse`.
|
|
Loading…
Reference in New Issue