summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-04-06 19:13:41 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-04-06 19:13:41 (GMT)
commitf394df47fd943d7067b5c3bedbf2c359d864923c (patch)
tree703795b41b64dd42cca59a157ecabd67c8b8dd59 /Objects
parentff41c48a77b7d1411ce97190c8b8405bdaa261e1 (diff)
downloadcpython-f394df47fd943d7067b5c3bedbf2c359d864923c.zip
cpython-f394df47fd943d7067b5c3bedbf2c359d864923c.tar.gz
cpython-f394df47fd943d7067b5c3bedbf2c359d864923c.tar.bz2
SF bug #699934: Obscure error message
mwh pointed out that the error message did not make sense if obtained by rearranging the bases.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 4a13928..fea6e15 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -1082,10 +1082,8 @@ set_mro_error(PyObject *to_merge, int *remain)
}
n = PyDict_Size(set);
- off = PyOS_snprintf(buf, sizeof(buf), "Cannot create class.\
-The superclasses have conflicting\n\
-inheritance trees which leave the method resolution order (MRO)\n\
-undefined for bases");
+ off = PyOS_snprintf(buf, sizeof(buf), "Cannot create a \
+consistent method resolution\norder (MRO) for bases");
i = 0;
while (PyDict_Next(set, &i, &k, &v) && off < sizeof(buf)) {
PyObject *name = class_name(k);