diff options
author | Zackery Spytz <zspytz@gmail.com> | 2020-05-16 01:27:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 01:27:54 (GMT) |
commit | 6b6092f533f0e4787b8564c4fad6ec6d1018af0d (patch) | |
tree | 7b3986eeb2dd969a78a6ed63daf6df6a0c5af482 /Objects/namespaceobject.c | |
parent | 1ce5841eca6d96b1b1e8c213d04f2e92b1619bb5 (diff) | |
download | cpython-6b6092f533f0e4787b8564c4fad6ec6d1018af0d.zip cpython-6b6092f533f0e4787b8564c4fad6ec6d1018af0d.tar.gz cpython-6b6092f533f0e4787b8564c4fad6ec6d1018af0d.tar.bz2 |
bpo-39075: types.SimpleNamespace no longer sorts attributes in its repr (GH-19430)
Diffstat (limited to 'Objects/namespaceobject.c')
-rw-r--r-- | Objects/namespaceobject.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Objects/namespaceobject.c b/Objects/namespaceobject.c index 29141a8..fa37ed2 100644 --- a/Objects/namespaceobject.c +++ b/Objects/namespaceobject.c @@ -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) |