@@ -270,56 +270,60 @@ bytesio_get_closed(PyObject *op, void *Py_UNUSED(closure))
270
270
}
271
271
272
272
/*[clinic input]
273
+ @critical_section
273
274
_io.BytesIO.readable
274
275
275
276
Returns True if the IO object can be read.
276
277
[clinic start generated code]*/
277
278
278
279
static PyObject *
279
280
_io_BytesIO_readable_impl (bytesio * self )
280
- /*[clinic end generated code: output=4e93822ad5b62263 input=96c5d0cccfb29f5c ]*/
281
+ /*[clinic end generated code: output=4e93822ad5b62263 input=ab7816facef48bfd ]*/
281
282
{
282
283
CHECK_CLOSED (self );
283
284
Py_RETURN_TRUE ;
284
285
}
285
286
286
287
/*[clinic input]
288
+ @critical_section
287
289
_io.BytesIO.writable
288
290
289
291
Returns True if the IO object can be written.
290
292
[clinic start generated code]*/
291
293
292
294
static PyObject *
293
295
_io_BytesIO_writable_impl (bytesio * self )
294
- /*[clinic end generated code: output=64ff6a254b1150b8 input=700eed808277560a ]*/
296
+ /*[clinic end generated code: output=64ff6a254b1150b8 input=4f35d49d26dab024 ]*/
295
297
{
296
298
CHECK_CLOSED (self );
297
299
Py_RETURN_TRUE ;
298
300
}
299
301
300
302
/*[clinic input]
303
+ @critical_section
301
304
_io.BytesIO.seekable
302
305
303
306
Returns True if the IO object can be seeked.
304
307
[clinic start generated code]*/
305
308
306
309
static PyObject *
307
310
_io_BytesIO_seekable_impl (bytesio * self )
308
- /*[clinic end generated code: output=6b417f46dcc09b56 input=9421f65627a344dd ]*/
311
+ /*[clinic end generated code: output=6b417f46dcc09b56 input=9cc78d15aa1deaa3 ]*/
309
312
{
310
313
CHECK_CLOSED (self );
311
314
Py_RETURN_TRUE ;
312
315
}
313
316
314
317
/*[clinic input]
318
+ @critical_section
315
319
_io.BytesIO.flush
316
320
317
321
Does nothing.
318
322
[clinic start generated code]*/
319
323
320
324
static PyObject *
321
325
_io_BytesIO_flush_impl (bytesio * self )
322
- /*[clinic end generated code: output=187e3d781ca134a0 input=561ea490be4581a7 ]*/
326
+ /*[clinic end generated code: output=187e3d781ca134a0 input=c60842743910b381 ]*/
323
327
{
324
328
CHECK_CLOSED (self );
325
329
Py_RETURN_NONE ;
@@ -385,6 +389,7 @@ _io_BytesIO_getvalue_impl(bytesio *self)
385
389
}
386
390
387
391
/*[clinic input]
392
+ @critical_section
388
393
_io.BytesIO.isatty
389
394
390
395
Always returns False.
@@ -394,7 +399,7 @@ BytesIO objects are not connected to a TTY-like device.
394
399
395
400
static PyObject *
396
401
_io_BytesIO_isatty_impl (bytesio * self )
397
- /*[clinic end generated code: output=df67712e669f6c8f input=6f97f0985d13f827 ]*/
402
+ /*[clinic end generated code: output=df67712e669f6c8f input=50487b74dc5ae8a9 ]*/
398
403
{
399
404
CHECK_CLOSED (self );
400
405
Py_RETURN_FALSE ;
0 commit comments