bpo-39075: types.SimpleNamespace no longer sorts attributes in its repr (GH-19430)

This commit is contained in:
Zackery Spytz 2020-05-15 19:27:54 -06:00 committed by GitHub
parent 1ce5841eca
commit 6b6092f533
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 7 deletions

View file

@ -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)