summaryrefslogtreecommitdiffstats
path: root/Objects/namespaceobject.c
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2020-05-16 01:27:54 (GMT)
committerGitHub <noreply@github.com>2020-05-16 01:27:54 (GMT)
commit6b6092f533f0e4787b8564c4fad6ec6d1018af0d (patch)
tree7b3986eeb2dd969a78a6ed63daf6df6a0c5af482 /Objects/namespaceobject.c
parent1ce5841eca6d96b1b1e8c213d04f2e92b1619bb5 (diff)
downloadcpython-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.c2
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)