@@ -1372,23 +1372,18 @@ _asyncio_Future__asyncio_future_blocking_get_impl(FutureObj *self)
13721372/*[clinic input]
13731373@critical_section
13741374@setter
1375- @deleter
13761375_asyncio.Future._asyncio_future_blocking
13771376[clinic start generated code]*/
13781377
13791378static int
13801379_asyncio_Future__asyncio_future_blocking_set_impl (FutureObj * self ,
13811380 PyObject * value )
1382- /*[clinic end generated code: output=0686d1cb024a7453 input=68cea090c8793dd4 ]*/
1381+ /*[clinic end generated code: output=0686d1cb024a7453 input=3fd4a5f95df788b7 ]*/
13831382
13841383{
13851384 if (future_ensure_alive (self )) {
13861385 return -1 ;
13871386 }
1388- if (value == NULL ) {
1389- PyErr_SetString (PyExc_AttributeError , "cannot delete attribute" );
1390- return -1 ;
1391- }
13921387
13931388 int is_true = PyObject_IsTrue (value );
13941389 if (is_true < 0 ) {
@@ -1421,18 +1416,13 @@ _asyncio_Future__log_traceback_get_impl(FutureObj *self)
14211416/*[clinic input]
14221417@critical_section
14231418@setter
1424- @deleter
14251419_asyncio.Future._log_traceback
14261420[clinic start generated code]*/
14271421
14281422static int
14291423_asyncio_Future__log_traceback_set_impl (FutureObj * self , PyObject * value )
1430- /*[clinic end generated code: output=9ce8e19504f42f54 input=469dbdd15343d39f ]*/
1424+ /*[clinic end generated code: output=9ce8e19504f42f54 input=30ac8217754b08c2 ]*/
14311425{
1432- if (value == NULL ) {
1433- PyErr_SetString (PyExc_AttributeError , "cannot delete attribute" );
1434- return -1 ;
1435- }
14361426 int is_true = PyObject_IsTrue (value );
14371427 if (is_true < 0 ) {
14381428 return -1 ;
@@ -1587,18 +1577,13 @@ _asyncio_Future__cancel_message_get_impl(FutureObj *self)
15871577/*[clinic input]
15881578@critical_section
15891579@setter
1590- @deleter
15911580_asyncio.Future._cancel_message
15921581[clinic start generated code]*/
15931582
15941583static int
15951584_asyncio_Future__cancel_message_set_impl (FutureObj * self , PyObject * value )
1596- /*[clinic end generated code: output=0854b2f77bff2209 input=68b3a24731dfb629 ]*/
1585+ /*[clinic end generated code: output=0854b2f77bff2209 input=f461d17f2d891fad ]*/
15971586{
1598- if (value == NULL ) {
1599- PyErr_SetString (PyExc_AttributeError , "cannot delete attribute" );
1600- return -1 ;
1601- }
16021587 Py_INCREF (value );
16031588 Py_XSETREF (self -> fut_cancel_msg , value );
16041589 return 0 ;
@@ -2446,18 +2431,13 @@ _asyncio_Task__log_destroy_pending_get_impl(TaskObj *self)
24462431/*[clinic input]
24472432@critical_section
24482433@setter
2449- @deleter
24502434_asyncio.Task._log_destroy_pending
24512435[clinic start generated code]*/
24522436
24532437static int
24542438_asyncio_Task__log_destroy_pending_set_impl (TaskObj * self , PyObject * value )
2455- /*[clinic end generated code: output=7ebc030bb92ec5ce input=31af83e8bf57ac6f ]*/
2439+ /*[clinic end generated code: output=7ebc030bb92ec5ce input=49b759c97d1216a4 ]*/
24562440{
2457- if (value == NULL ) {
2458- PyErr_SetString (PyExc_AttributeError , "cannot delete attribute" );
2459- return -1 ;
2460- }
24612441 int is_true = PyObject_IsTrue (value );
24622442 if (is_true < 0 ) {
24632443 return -1 ;
0 commit comments