FS#30035 - [python-markdown] the markdown_py script dies with a traceback when called with the --help option

Attached to Project: Community Packages
Opened by Chris Brannon (cmb) - Sunday, 27 May 2012, 13:19 GMT
Last edited by Kyle Keen (keenerd) - Wednesday, 30 May 2012, 08:01 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Apparently, the print_help method of the OptionParser class from the
optparse module is unable to cope when stdout is a binary stream.
After all, it's writing a text string.
So we need to call sys.stdout.detach() after optparse has done its thing.
Patch is attached.
I'm not really sure whose bug this is, anyway. Looks upstream to me,
but you patched the package.

Steps to reproduce:
markdown_py --help
This task depends upon

Closed by  Kyle Keen (keenerd)
Wednesday, 30 May 2012, 08:01 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 2.1.1-5
Comment by Kyle Keen (keenerd) - Wednesday, 30 May 2012, 08:00 GMT
Fixed in -5.

I'm just following upstream git while they are not releasing an update.

Loading...