Issue 1022953: binascii.a2b_hqx("") raises SystemError (original) (raw)

I noticed the following on Python 2.2, Python 2.3 and Python 2.4a1 with the Windows builds on WinXP and Win2000:

import binascii binascii.a2b_hqx("")

Traceback (most recent call last): File "<pyshell#12>", line 1, in -toplevel- binascii.a2b_hqx("") SystemError: C:\sf\python\dist23 \src\Objects\stringobject.c:3316: bad argument to internal function

The empty string is probably wrong input to a2b_hqx, but I think it should raise a ValueError at most, not a SystemError.