summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-01 12:58:37 (GMT)
committerGitHub <noreply@github.com>2021-10-01 12:58:37 (GMT)
commitb994feeca78f8ff81666b0e8a40fe2003986f6c7 (patch)
tree685cce1abdc18ae9a607daa92df837ba5f0b12b3
parent4e6681d0cf9e7ce5621c34ff87055fa1f9786108 (diff)
downloadcpython-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.h2
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))) { \