summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2016-09-05 21:50:11 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2016-09-05 21:50:11 (GMT)
commit92a6c170e6897ee98c36a3a9087b1a7d3e054d2b (patch)
tree59cbc717ac59e802529bc3ad4e61de161b66ac68 /Python
parent45659861380a9cd9e41ea002d4de92519ffb3422 (diff)
downloadcpython-92a6c170e6897ee98c36a3a9087b1a7d3e054d2b.zip
cpython-92a6c170e6897ee98c36a3a9087b1a7d3e054d2b.tar.gz
cpython-92a6c170e6897ee98c36a3a9087b1a7d3e054d2b.tar.bz2
Issue #24254: Preserve class attribute definition order.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index dc2daa8..07d59ca 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -145,7 +145,7 @@ builtin___build_class__(PyObject *self, PyObject *args, PyObject *kwds)
if (prep == NULL) {
if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
PyErr_Clear();
- ns = PyDict_New();
+ ns = PyODict_New();
}
else {
Py_DECREF(meta);