]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] hashlib: Fix old message about unicode objects. (GH-28653) (GH-28679)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 1 Oct 2021 13:28:19 +0000 (06:28 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Oct 2021 13:28:19 +0000 (06:28 -0700)
(cherry picked from commit 9ce0f48e918860ffa32751a85b0fe7967723e2e3)

Co-authored-by: Julien Palard <julien@palard.fr>
Modules/hashlib.h

index 978593e2f1a0c2f795c3c8710629f76c3351217d..56ae7a5e50bf58d072aeeb43136a70177da8b3ee 100644 (file)
@@ -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))) { \