Message266404
binascii.Error is used throughout the module for most of the validations, with only a few of them using TypeError/ValueError. I guess it would make more sense to update these to raise binascii.Error (unless they were left on purpose) to make it consistent with the rest of the module, although changing from TypeError to binascii.Error might break existing code.
Anyway, since a2b_hex is currently raising binascii.Error for an odd-length input, the attached patch fixes the documentation to reflect it. |
|
Date |
User |
Action |
Args |
2016-05-26 03:04:26 | luiz.poleto | set | recipients:
+ luiz.poleto, steven.daprano, docs@python, Lennart Grahl |
2016-05-26 03:04:25 | luiz.poleto | set | messageid: <1464231865.98.0.0245399992994.issue27124@psf.upfronthosting.co.za> |
2016-05-26 03:04:25 | luiz.poleto | link | issue27124 messages |
2016-05-26 03:04:25 | luiz.poleto | create | |
|