From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 1 Oct 2021 13:28:19 +0000 (-0700) Subject: [3.9] hashlib: Fix old message about unicode objects. (GH-28653) (GH-28679) X-Git-Tag: v3.9.8~110 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8822526caac80a0ab5f0b4722fe947e78c2ada7c;p=thirdparty%2FPython%2Fcpython.git [3.9] hashlib: Fix old message about unicode objects. (GH-28653) (GH-28679) (cherry picked from commit 9ce0f48e918860ffa32751a85b0fe7967723e2e3) Co-authored-by: Julien Palard --- 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))) { \