This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients BreamoreBoy, bethard, paul.j3, thorsten
Date 2014-07-14.06:15:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405318559.57.0.115576724478.issue16786@psf.upfronthosting.co.za>
In-reply-to
Content
In this patch I added the '_()' localization to the '_VersionAction' default 'help'.

While this is a straight forward change, I haven't tested it.  It does run test_argparse.py, but that doesn't have any tests for localization.

According to the discussion here:
https://mail.python.org/pipermail/python-dev/2010-May/100215.html
this default help was originally None, and adding this string was seen
as a worthwhile convenience.  Localization was not considered.

Does this use of _() really save the user effort?  May be it would if they are already using the depricated version.  Otherwise they could just give the version argument their own non default help line.  I haven't used localization enough to know.
History
Date User Action Args
2014-07-14 06:15:59paul.j3setrecipients: + paul.j3, bethard, BreamoreBoy, thorsten
2014-07-14 06:15:59paul.j3setmessageid: <1405318559.57.0.115576724478.issue16786@psf.upfronthosting.co.za>
2014-07-14 06:15:59paul.j3linkissue16786 messages
2014-07-14 06:15:59paul.j3create