commit | dffe4c07095e0c693e094d3c140e85a68bd8128e | [log] [tgz] |
---|---|---|
author | Andy Lester <andy@petdance.com> | Wed Mar 04 07:15:20 2020 -0600 |
committer | GitHub <noreply@github.com> | Wed Mar 04 14:15:20 2020 +0100 |
tree | 1f58f4c2f76d6f630c5279a7b72d31bb6b4d8873 | |
parent | 22a9a546ff3bf2a63d77ca1e5494e758bc59132f [diff] [blame] |
bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)
diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c index 28d54e0..9feb76e 100644 --- a/Modules/_io/stringio.c +++ b/Modules/_io/stringio.c
@@ -402,7 +402,7 @@ CHECK_CLOSED(self); ENSURE_REALIZED(self); - if (Py_TYPE(self) == &PyStringIO_Type) { + if (Py_IS_TYPE(self, &PyStringIO_Type)) { /* Skip method call overhead for speed */ line = _stringio_readline(self, -1); }