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
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
|
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
Wednesday, 30 May 2012, 08:01 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 2.1.1-5
I'm just following upstream git while they are not releasing an update.