diff options
| author | Andy Lester <andy@petdance.com> | 2020-03-06 16:53:17 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-06 23:53:17 +0100 |
| commit | 557287075c264d2458cd3e1b45e9b8ee5341e0a1 (patch) | |
| tree | 6c34331fdbf74476b60b1e32972e360af4985ab6 /Objects/setobject.c | |
| parent | e59334ebc9308b0f3ad048ef293c6b49e6456d1a (diff) | |
| download | cpython-git-557287075c264d2458cd3e1b45e9b8ee5341e0a1.tar.gz | |
bpo-39573: Use Py_IS_TYPE() macro to check for types (GH-18809)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Objects/setobject.c')
| -rw-r--r-- | Objects/setobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c index bb7c0b8f04..43fa5d17fd 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -608,7 +608,7 @@ set_repr(PySetObject *so) goto done; listrepr = tmp; - if (Py_TYPE(so) != &PySet_Type) + if (!Py_IS_TYPE(so, &PySet_Type)) result = PyUnicode_FromFormat("%s({%U})", Py_TYPE(so)->tp_name, listrepr); |
