From: Julien Palard Date: Fri, 1 Oct 2021 12:38:49 +0000 (+0200) Subject: hashlib: Fix old message about unicode objects. (GH-28653) X-Git-Tag: v3.11.0a1~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ce0f48e918860ffa32751a85b0fe7967723e2e3;p=thirdparty%2FPython%2Fcpython.git hashlib: Fix old message about unicode objects. (GH-28653) --- diff --git a/Modules/hashlib.h b/Modules/hashlib.h index 978593e2f1a0..56ae7a5e50bf 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))) { \