mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
bpo-39075: types.SimpleNamespace no longer sorts attributes in its repr (GH-19430)
This commit is contained in:
parent
1ce5841eca
commit
6b6092f533
4 changed files with 9 additions and 7 deletions
|
|
@ -91,8 +91,6 @@ namespace_repr(PyObject *ns)
|
|||
keys = PyDict_Keys(d);
|
||||
if (keys == NULL)
|
||||
goto error;
|
||||
if (PyList_Sort(keys) != 0)
|
||||
goto error;
|
||||
|
||||
keys_iter = PyObject_GetIter(keys);
|
||||
if (keys_iter == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue