Éric Araujo <mer...@netwok.org> added the comment:

Attached patch fixes the two misuses I found in argparse.

I tried importing ngettext as _ngettext to comply with arpgarse’s 
crazy^Wpersonal <wink> import style (enforced in TestImportStar), but then I 
could not force xgettext to find all the strings.  Rather than struggle longer 
with the program, I chose to add an exception for ngettext in the test.  “from 
argparse import *” does not import ngettext, thanks to __all__, so I think my 
choice is simple and sensible.

----------
title: optparse: use proper gettext plurals forms -> use proper gettext plurals 
forms in argparse and optparse
Added file: http://bugs.python.org/file19941/fix-argparse-ngettext.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4391>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to