mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
merge 3.2
This commit is contained in:
commit
3e6267e704
1 changed files with 3 additions and 1 deletions
|
@ -2091,8 +2091,10 @@ type_new(PyTypeObject *metatype, PyObject *args, PyObject *kwds)
|
|||
PyUnicode_CompareWithASCIIString(tmp, "__weakref__") == 0))
|
||||
continue;
|
||||
tmp =_Py_Mangle(name, tmp);
|
||||
if (!tmp)
|
||||
if (!tmp) {
|
||||
Py_DECREF(newslots);
|
||||
goto bad_slots;
|
||||
}
|
||||
PyList_SET_ITEM(newslots, j, tmp);
|
||||
if (PyDict_GetItem(dict, tmp)) {
|
||||
PyErr_Format(PyExc_ValueError,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue