diff options
author | Julien Palard <julien@palard.fr> | 2021-10-01 12:38:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-01 12:38:49 (GMT) |
commit | 9ce0f48e918860ffa32751a85b0fe7967723e2e3 (patch) | |
tree | 4869c4a138f452c624bd65f666778f6e2b576088 /Modules | |
parent | 1dac95c814763eb8a53896ac4326d8d51895d43d (diff) | |
download | cpython-9ce0f48e918860ffa32751a85b0fe7967723e2e3.zip cpython-9ce0f48e918860ffa32751a85b0fe7967723e2e3.tar.gz cpython-9ce0f48e918860ffa32751a85b0fe7967723e2e3.tar.bz2 |
hashlib: Fix old message about unicode objects. (GH-28653)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/hashlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/hashlib.h b/Modules/hashlib.h index 978593e..56ae7a5 100644 --- a/Modules/hashlib.h +++ b/Modules/hashlib.h @@ -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))) { \ |