bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)

This commit is contained in:
Andy Lester 2020-03-04 07:15:20 -06:00 • committed by GitHub
parent 22a9a546ff
commit dffe4c0709
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 56 additions and 57 deletions

View file

@ -402,7 +402,7 @@ stringio_iternext(stringio *self)
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);
}