summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-01 12:58:37 (GMT)
committerPablo Galindo <pablogsal@gmail.com>2021-10-03 23:58:48 (GMT)
commite4d36423d0e743bfb714135080c045ff5e1c0d41 (patch)
tree3393a70a515f0414bed2c0c48661e4fc29a6665b
parent63c4d42e6ea68104561c853b065c004b200eba68 (diff)
downloadcpython-e4d36423d0e743bfb714135080c045ff5e1c0d41.zip
cpython-e4d36423d0e743bfb714135080c045ff5e1c0d41.tar.gz
cpython-e4d36423d0e743bfb714135080c045ff5e1c0d41.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))) { \