[Python-checkins] hashlib: Fix old message about unicode objects. (GH-28653)
JulienPalard
webhook-mailer at python.org
Fri Oct 1 08:38:54 EDT 2021
https://github.com/python/cpython/commit/9ce0f48e918860ffa32751a85b0fe7967723e2e3
commit: 9ce0f48e918860ffa32751a85b0fe7967723e2e3
branch: main
author: Julien Palard <julien at palard.fr>
committer: JulienPalard <julien at palard.fr>
date: 2021-10-01T14:38:49+02:00
summary:
hashlib: Fix old message about unicode objects. (GH-28653)
files:
M Modules/hashlib.h
diff --git a/Modules/hashlib.h b/Modules/hashlib.h
index 978593e2f1a0c..56ae7a5e50bf5 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))) { \
More information about the Python-checkins
mailing list