summaryrefslogtreecommitdiffstats
path: root/Modules/_threadmodule.c
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2023-04-24 14:23:08 (GMT)
committerGitHub <noreply@github.com>2023-04-24 14:23:08 (GMT)
commit543009347e7cfcc495ca8553fab8d622dcfd18e3 (patch)
tree6ca45ebf28af6adee5c85b707b21c8f18ad57a91 /Modules/_threadmodule.c
parent59c522f9650c22dc986debce483b83a4ffc6dc0d (diff)
downloadcpython-543009347e7cfcc495ca8553fab8d622dcfd18e3.zip
cpython-543009347e7cfcc495ca8553fab8d622dcfd18e3.tar.gz
cpython-543009347e7cfcc495ca8553fab8d622dcfd18e3.tar.bz2
gh-103712: Increase the length of the type name in AttributeError messages (#103713)
Diffstat (limited to 'Modules/_threadmodule.c')
-rw-r--r--Modules/_threadmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c
index 9c12c69..fd2fd9a 100644
--- a/Modules/_threadmodule.c
+++ b/Modules/_threadmodule.c
@@ -946,7 +946,7 @@ local_setattro(localobject *self, PyObject *name, PyObject *v)
}
if (r == 1) {
PyErr_Format(PyExc_AttributeError,
- "'%.50s' object attribute '%U' is read-only",
+ "'%.100s' object attribute '%U' is read-only",
Py_TYPE(self)->tp_name, name);
return -1;
}