@@ -120,11 +120,6 @@ _io__Buffered_peek(buffered *self, PyObject *const *args, Py_ssize_t nargs)
120
120
if (nargs < 1 ) {
121
121
goto skip_optional ;
122
122
}
123
- if (PyFloat_Check (args [0 ])) {
124
- PyErr_SetString (PyExc_TypeError ,
125
- "integer argument expected, got float" );
126
- goto exit ;
127
- }
128
123
{
129
124
Py_ssize_t ival = -1 ;
130
125
PyObject * iobj = PyNumber_Index (args [0 ]);
@@ -200,11 +195,6 @@ _io__Buffered_read1(buffered *self, PyObject *const *args, Py_ssize_t nargs)
200
195
if (nargs < 1 ) {
201
196
goto skip_optional ;
202
197
}
203
- if (PyFloat_Check (args [0 ])) {
204
- PyErr_SetString (PyExc_TypeError ,
205
- "integer argument expected, got float" );
206
- goto exit ;
207
- }
208
198
{
209
199
Py_ssize_t ival = -1 ;
210
200
PyObject * iobj = PyNumber_Index (args [0 ]);
@@ -356,11 +346,6 @@ _io__Buffered_seek(buffered *self, PyObject *const *args, Py_ssize_t nargs)
356
346
if (nargs < 2 ) {
357
347
goto skip_optional ;
358
348
}
359
- if (PyFloat_Check (args [1 ])) {
360
- PyErr_SetString (PyExc_TypeError ,
361
- "integer argument expected, got float" );
362
- goto exit ;
363
- }
364
349
whence = _PyLong_AsInt (args [1 ]);
365
350
if (whence == -1 && PyErr_Occurred ()) {
366
351
goto exit ;
@@ -434,11 +419,6 @@ _io_BufferedReader___init__(PyObject *self, PyObject *args, PyObject *kwargs)
434
419
if (!noptargs ) {
435
420
goto skip_optional_pos ;
436
421
}
437
- if (PyFloat_Check (fastargs [1 ])) {
438
- PyErr_SetString (PyExc_TypeError ,
439
- "integer argument expected, got float" );
440
- goto exit ;
441
- }
442
422
{
443
423
Py_ssize_t ival = -1 ;
444
424
PyObject * iobj = PyNumber_Index (fastargs [1 ]);
@@ -493,11 +473,6 @@ _io_BufferedWriter___init__(PyObject *self, PyObject *args, PyObject *kwargs)
493
473
if (!noptargs ) {
494
474
goto skip_optional_pos ;
495
475
}
496
- if (PyFloat_Check (fastargs [1 ])) {
497
- PyErr_SetString (PyExc_TypeError ,
498
- "integer argument expected, got float" );
499
- goto exit ;
500
- }
501
476
{
502
477
Py_ssize_t ival = -1 ;
503
478
PyObject * iobj = PyNumber_Index (fastargs [1 ]);
@@ -590,11 +565,6 @@ _io_BufferedRWPair___init__(PyObject *self, PyObject *args, PyObject *kwargs)
590
565
if (PyTuple_GET_SIZE (args ) < 3 ) {
591
566
goto skip_optional ;
592
567
}
593
- if (PyFloat_Check (PyTuple_GET_ITEM (args , 2 ))) {
594
- PyErr_SetString (PyExc_TypeError ,
595
- "integer argument expected, got float" );
596
- goto exit ;
597
- }
598
568
{
599
569
Py_ssize_t ival = -1 ;
600
570
PyObject * iobj = PyNumber_Index (PyTuple_GET_ITEM (args , 2 ));
@@ -649,11 +619,6 @@ _io_BufferedRandom___init__(PyObject *self, PyObject *args, PyObject *kwargs)
649
619
if (!noptargs ) {
650
620
goto skip_optional_pos ;
651
621
}
652
- if (PyFloat_Check (fastargs [1 ])) {
653
- PyErr_SetString (PyExc_TypeError ,
654
- "integer argument expected, got float" );
655
- goto exit ;
656
- }
657
622
{
658
623
Py_ssize_t ival = -1 ;
659
624
PyObject * iobj = PyNumber_Index (fastargs [1 ]);
@@ -672,4 +637,4 @@ _io_BufferedRandom___init__(PyObject *self, PyObject *args, PyObject *kwargs)
672
637
exit :
673
638
return return_value ;
674
639
}
675
- /*[clinic end generated code: output=7246104f6c7d3167 input=a9049054013a1b77]*/
640
+ /*[clinic end generated code: output=056db07ecd9fdec4 input=a9049054013a1b77]*/
0 commit comments