mirror of
https://github.com/python/cpython
synced 2026-09-29 10:35:30 +03:00
bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)
This commit is contained in:
parent
22a9a546ff
commit
dffe4c0709
23 changed files with 56 additions and 57 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue