1. Christian Heimes
  2. pykeccak

Commits

Christian Heimes  committed 406b0fb

Port fix for _PyUnicode_CheckConsistency() from http://hg.python.org/cpython/rev/4b42d7f288c5

  • Participants
  • Parent commits d99a99e
  • Branches default

Comments (0)

Files changed (1)

File Modules/_sha3/sha3module.c

View file
  • Ignore whitespace
         c = (digest[i] & 0xf);
         hex_digest[j++] = Py_hexdigits[c];
     }
+#ifdef Py_DEBUG
     assert(_PyUnicode_CheckConsistency(retval, 1));
+#endif /* Py_DEBUG */
 #else
     for(i=j=0; i < digestlen; i++) {
         char c;
         c = (c>9) ? c+'a'-10 : c + '0';
         hex_digest[j++] = c;
     }
-#endif
+#endif /* PY_VERSION_33 */
     return retval;
 }