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 vajrasky
Recipients Arfrever, luke-jr, pitrou, python-dev, r.david.murray, vajrasky, vstinner
Date 2013-11-02.13:43:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383399822.02.0.522002380045.issue13637@psf.upfronthosting.co.za>
In-reply-to
Content
Here is another patch to better the error message. Right now, the error message when wrong input sent to unhexlify is a little bit funny.

>>> import binascii
>>> binascii.unhexlify(3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: argument should be bytes, buffer or ASCII string, not <class 'int'>

After patch:
>>> import binascii
>>> binascii.unhexlify(3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: argument should be bytes, buffer or ASCII string, not int
History
Date User Action Args
2013-11-02 13:43:42vajraskysetrecipients: + vajrasky, pitrou, vstinner, luke-jr, Arfrever, r.david.murray, python-dev
2013-11-02 13:43:42vajraskysetmessageid: <1383399822.02.0.522002380045.issue13637@psf.upfronthosting.co.za>
2013-11-02 13:43:42vajraskylinkissue13637 messages
2013-11-02 13:43:41vajraskycreate