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 eryksun
Recipients brian.curtin, eryksun, giampaolo.rodola, jkloth, lemburg, loewis, pitrou, serhiy.storchaka, steve.dower, tim.golden, tim.peters, zach.ware
Date 2015-01-02.19:49:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420228183.72.0.539142789996.issue19143@psf.upfronthosting.co.za>
In-reply-to
Content
> if (not version.GetFileVersionInfoW(name, None, size, ver_block) or
>        not ver_block):

Arrays don't implement __bool__ and have fixed __len__, so ver_block is always True. You could look at ver_block[0] or ver_block.value (i.e. the C string value).
History
Date User Action Args
2015-01-02 19:49:43eryksunsetrecipients: + eryksun, lemburg, tim.peters, loewis, pitrou, giampaolo.rodola, tim.golden, jkloth, brian.curtin, zach.ware, serhiy.storchaka, steve.dower
2015-01-02 19:49:43eryksunsetmessageid: <1420228183.72.0.539142789996.issue19143@psf.upfronthosting.co.za>
2015-01-02 19:49:43eryksunlinkissue19143 messages
2015-01-02 19:49:43eryksuncreate