Per Georg's suggestion, get rid of str.decode() (which always raises an
exception) and change bytes.find() to use _getbuffer(), so b"".find("") will raise TypeError instead of SystemError.
Showing
Please
register
or
sign in
to comment
exception) and change bytes.find() to use _getbuffer(), so b"".find("") will raise TypeError instead of SystemError.