mirror of https://github.com/python/cpython
Merge from 3.5.
This commit is contained in:
commit
d8e5d6c4a5
|
@ -37,6 +37,8 @@ Library
|
|||
|
||||
- Issue #24362: Simplify the C OrderedDict fast nodes resize logic.
|
||||
|
||||
- Issue #24377: Fix a ref leak in OrderedDict.__repr__.
|
||||
|
||||
|
||||
What's New in Python 3.5.0 beta 2?
|
||||
==================================
|
||||
|
|
|
@ -1578,7 +1578,7 @@ odict_repr(PyODictObject *self)
|
|||
if (value == NULL) {
|
||||
if (!PyErr_Occurred())
|
||||
PyErr_SetObject(PyExc_KeyError, key);
|
||||
return NULL;
|
||||
goto Done;
|
||||
}
|
||||
pair = PyTuple_Pack(2, key, value);
|
||||
if (pair == NULL)
|
||||
|
|
Loading…
Reference in New Issue