[issue11884] Argparse calls ngettext but doesn't import it
New submission from John O'Hagan : 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 <http://bugs.python.org/issue11884> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11884] Argparse calls ngettext but doesn't import it
John O'Hagan added the comment: It's argparse version 1.1 (1.1-1) from current Debian testing, Python 3.2 (r32:88445, Feb 20 2011, 18:43:30) -- ___ Python tracker <http://bugs.python.org/issue11884> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11884] Argparse calls ngettext but doesn't import it
John O'Hagan added the comment: Reported to Debian, bug #624277 -- ___ Python tracker <http://bugs.python.org/issue11884> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com