From 9ce0f48e918860ffa32751a85b0fe7967723e2e3 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 1 Oct 2021 14:38:49 +0200 Subject: [PATCH] hashlib: Fix old message about unicode objects. (GH-28653) --- Modules/hashlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/hashlib.h b/Modules/hashlib.h index 978593e2f1a..56ae7a5e50b 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))) { \