From 00619db2ea434dc0f01d335a5a48f03402ca2a86 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Thu, 30 Sep 2021 15:57:53 +0200 Subject: [PATCH] hashlib: Fix old message about unicode objects. --- Modules/hashlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/hashlib.h b/Modules/hashlib.h index 978593e2f1a0c2..56ae7a5e50bf58 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))) { \