mirror of https://github.com/python/cpython.git
hashlib: Fix old message about unicode objects. (GH-28653)
This commit is contained in:
parent
1dac95c814
commit
9ce0f48e91
|
@ -8,7 +8,7 @@
|
|||
#define GET_BUFFER_VIEW_OR_ERROR(obj, viewp, erraction) do { \
|
||||
if (PyUnicode_Check((obj))) { \
|
||||
PyErr_SetString(PyExc_TypeError, \
|
||||
"Unicode-objects must be encoded before hashing");\
|
||||
"Strings must be encoded before hashing");\
|
||||
erraction; \
|
||||
} \
|
||||
if (!PyObject_CheckBuffer((obj))) { \
|
||||
|
|
Loading…
Reference in New Issue