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 xtreak
Recipients Marcus.Smith, Suzumizaki, dstufft, ncoghlan, paul.moore, tanbro-liu, xtreak
Date 2018-10-08.06:01:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538978518.87.0.545547206417.issue24307@psf.upfronthosting.co.za>
In-reply-to
Content
Since @tanbro-liu hasn't responded I am proposing this to be an easy issue. The issue is that %default in optparse doesn't handle unicode values. The fix would be to make the patch in msg244244 as a PR attributing to the original author and add a test called test_unicode_default with a unicode value as default similar to test_float_default [1] that uses a default float value.

[1] https://github.com/python/cpython/blob/4a7dd30f5810e8861a3834159a222ab32d5c97d0/Lib/test/test_optparse.py#L607
History
Date User Action Args
2018-10-08 06:01:59xtreaksetrecipients: + xtreak, paul.moore, ncoghlan, Suzumizaki, dstufft, Marcus.Smith, tanbro-liu
2018-10-08 06:01:58xtreaksetmessageid: <1538978518.87.0.545547206417.issue24307@psf.upfronthosting.co.za>
2018-10-08 06:01:58xtreaklinkissue24307 messages
2018-10-08 06:01:58xtreakcreate