]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
hashlib: Fix old message about unicode objects. (GH-28653)
authorJulien Palard <julien@palard.fr>
Fri, 1 Oct 2021 12:38:49 +0000 (14:38 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Oct 2021 12:38:49 +0000 (14:38 +0200)
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))) { \