Skip to content

Commit 215687f

Browse files
Update Modules/_io/bytesio.c
1 parent f88e436 commit 215687f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Modules/_io/bytesio.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,10 +1196,8 @@ bytesiobuf_getbuffer(PyObject *op, Py_buffer *view, int flags)
11961196
}
11971197

11981198
bytesiobuf *obj = bytesiobuf_CAST(op);
1199-
bytesio *b = bytesio_CAST(obj->source);
1200-
(void)b;
12011199
int ret;
1202-
Py_BEGIN_CRITICAL_SECTION(b);
1200+
Py_BEGIN_CRITICAL_SECTION(obj->source);
12031201
ret = bytesiobuf_getbuffer_lock_held(op, view, flags);
12041202
Py_END_CRITICAL_SECTION();
12051203
return ret;

0 commit comments

Comments
 (0)