10000 bpo-39573: Finish converting to new Py_IS_TYPE macro. by petdance · Pull Request #18601 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-39573: Finish converting to new Py_IS_TYPE macro. #18601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 4, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Modules/_io/bufferedio.c
Co-Authored-By: Victor Stinner <vstinner@python.org>
  • Loading branch information
petdance and vstinner authored Mar 4, 2020
commit 2aec9de21c68b29c7d712704cebf768f016dc63c
4 changes: 2 additions & 2 deletions Modules/_io/bufferedio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1449,8 +1449,8 @@ _io_BufferedReader___init___impl(buffered *self, PyObject *raw,
return -1;
_bufferedreader_reset_buf(self);

self->fast_closed_checks = Py_IS_TYPE(self, &PyBufferedReader_Type) &&
Py_IS_TYPE(raw, &PyFileIO_Type);
self->fast_closed_checks = (Py_IS_TYPE(self, &PyBufferedReader_Type) &&
Py_IS_TYPE(raw, &PyFileIO_Type));

self->ok = 1;
return 0;
Expand Down
0