diff options
author | Guido van Rossum <guido@python.org> | 2001-12-15 05:00:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-12-15 05:00:30 (GMT) |
commit | 2b8235e485f875d95809b0092c52dc6c49ad3130 (patch) | |
tree | e42f8c538fd7e586d2c9e03d89760392884f79ed /Objects | |
parent | 694344466447db787c57d072a7a14ef45da5fe8b (diff) | |
download | cpython-2b8235e485f875d95809b0092c52dc6c49ad3130.zip cpython-2b8235e485f875d95809b0092c52dc6c49ad3130.tar.gz cpython-2b8235e485f875d95809b0092c52dc6c49ad3130.tar.bz2 |
SF bug #493561: incorrect format string descrobject.c (Neal Norwitz)
%300s should be %.300s, twice.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/descrobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c index 54c0347..e7aa4ec 100644 --- a/Objects/descrobject.c +++ b/Objects/descrobject.c @@ -108,7 +108,7 @@ getset_get(PyGetSetDescrObject *descr, PyObject *obj, PyTypeObject *type) if (descr->d_getset->get != NULL) return descr->d_getset->get(obj, descr->d_getset->closure); PyErr_Format(PyExc_TypeError, - "attribute '%300s' of '%.100s' objects is not readable", + "attribute '%.300s' of '%.100s' objects is not readable", descr_name((PyDescrObject *)descr), descr->d_type->tp_name); return NULL; @@ -163,7 +163,7 @@ getset_set(PyGetSetDescrObject *descr, PyObject *obj, PyObject *value) return descr->d_getset->set(obj, value, descr->d_getset->closure); PyErr_Format(PyExc_TypeError, - "attribute '%300s' of '%.100s' objects is not writable", + "attribute '%.300s' of '%.100s' objects is not writable", descr_name((PyDescrObject *)descr), descr->d_type->tp_name); return -1; |