[issue172] ValueError: unsupported format character '-' (0x2d) at index 9

Ed Swierk at Labix Tracker tracker at labix.org
Mon Dec 31 10:55:27 PST 2007


Ed Swierk <eswierk at cs.stanford.edu> added the comment:

When TextProgress.setScreenWidth is passed a width of 0, it generates a bogus 
format string containing a negative number.

The attached patch works around this bug by forcing the width to at least 70 
characters.

----------
nosy: +eswierk

_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue172>
_______________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: width.patch
Type: application/octet-stream
Size: 524 bytes
Desc: not available
URL: <http://lists.labix.org/pipermail/smart-labix.org/attachments/20071231/d4b8bfeb/attachment-0002.obj>


More information about the Smart mailing list