[New-bugs-announce] [issue11884] Argparse calls ngettext but doesn't import it
John O'Hagan
report at bugs.python.org
Wed Apr 20 09:36:50 CEST 2011
New submission from John O'Hagan <research at johnohagan.com>:
Argparse in python3.2 includes two calls to ngettext to handle error messages, but ngettext is not imported. This causes NameError to be raised instead of ArgumentError.
Changing line 93 from:
from gettext import gettext
to:
from gettext import gettext, ngettext
seems to fix the problem.
----------
components: Library (Lib)
messages: 134126
nosy: johnohagan
priority: normal
severity: normal
status: open
title: Argparse calls ngettext but doesn't import it
type: behavior
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11884>
_______________________________________
More information about the New-bugs-announce
mailing list