Fix segfault in bucket_repr() on Python 3
Fixes #106. The bug was in not checking the return value of PyUnicode_AsLatin1String() and passing a NULL to PyOS_snprintf(). The fix is to use PyUnicode_FromFormat() and avoid all the hassle of manual encoding/sprintf/decoding and even calling repr().
Showing
Please register or sign in to comment