diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-10-01 12:58:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-01 12:58:37 (GMT) |
commit | b994feeca78f8ff81666b0e8a40fe2003986f6c7 (patch) | |
tree | 685cce1abdc18ae9a607daa92df837ba5f0b12b3 | |
parent | 4e6681d0cf9e7ce5621c34ff87055fa1f9786108 (diff) | |
download | cpython-b994feeca78f8ff81666b0e8a40fe2003986f6c7.zip cpython-b994feeca78f8ff81666b0e8a40fe2003986f6c7.tar.gz cpython-b994feeca78f8ff81666b0e8a40fe2003986f6c7.tar.bz2 |
hashlib: Fix old message about unicode objects. (GH-28653)
(cherry picked from commit 9ce0f48e918860ffa32751a85b0fe7967723e2e3)
Co-authored-by: Julien Palard <julien@palard.fr>
-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))) { \ |