@@ -1078,7 +1078,7 @@ _io_TextIOWrapper___init___impl(textio *self, PyObject *buffer,
10781078 if (cookieObj == NULL )
10791079 goto error ;
10801080
1081- cmp = PyObject_RichCompareBool (cookieObj , _PyIO_zero , Py_EQ );
1081+ cmp = PyObject_RichCompareBool (cookieObj , _PyLong_Zero , Py_EQ );
10821082 Py_DECREF (cookieObj );
10831083 if (cmp < 0 ) {
10841084 goto error ;
@@ -1087,7 +1087,7 @@ _io_TextIOWrapper___init___impl(textio *self, PyObject *buffer,
10871087 if (cmp == 0 ) {
10881088 self -> encoding_start_of_stream = 0 ;
10891089 res = PyObject_CallMethodObjArgs (self -> encoder , _PyIO_str_setstate ,
1090- _PyIO_zero , NULL );
1090+ _PyLong_Zero , NULL );
10911091 if (res == NULL )
10921092 goto error ;
10931093 Py_DECREF (res );
@@ -2030,7 +2030,7 @@ _textiowrapper_encoder_reset(textio *self, int start_of_stream)
20302030 }
20312031 else {
20322032 res = PyObject_CallMethodObjArgs (self -> encoder , _PyIO_str_setstate ,
2033- _PyIO_zero , NULL );
2033+ _PyLong_Zero , NULL );
20342034 self -> encoding_start_of_stream = 0 ;
20352035 }
20362036 if (res == NULL )
@@ -2075,7 +2075,7 @@ _io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence)
20752075
20762076 if (whence == 1 ) {
20772077 /* seek relative to current position */
2078- cmp = PyObject_RichCompareBool (cookieObj , _PyIO_zero , Py_EQ );
2078+ cmp = PyObject_RichCompareBool (cookieObj , _PyLong_Zero , Py_EQ );
20792079 if (cmp < 0 )
20802080 goto fail ;
20812081
@@ -2094,7 +2094,7 @@ _io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence)
20942094 }
20952095 else if (whence == 2 ) {
20962096 /* seek relative to end of file */
2097- cmp = PyObject_RichCompareBool (cookieObj , _PyIO_zero , Py_EQ );
2097+ cmp = PyObject_RichCompareBool (cookieObj , _PyLong_Zero , Py_EQ );
20982098 if (cmp < 0 )
20992099 goto fail ;
21002100
@@ -2123,7 +2123,7 @@ _io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence)
21232123 goto fail ;
21242124 if (self -> encoder ) {
21252125 /* If seek() == 0, we are at the start of stream, otherwise not */
2126- cmp = PyObject_RichCompareBool (res , _PyIO_zero , Py_EQ );
2126+ cmp = PyObject_RichCompareBool (res , _PyLong_Zero , Py_EQ );
21272127 if (cmp < 0 || _textiowrapper_encoder_reset (self , cmp )) {
21282128 Py_DECREF (res );
21292129 goto fail ;
@@ -2137,7 +2137,7 @@ _io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence)
21372137 goto fail ;
21382138 }
21392139
2140- cmp = PyObject_RichCompareBool (cookieObj , _PyIO_zero , Py_LT );
2140+ cmp = PyObject_RichCompareBool (cookieObj , _PyLong_Zero , Py_LT );
21412141 if (cmp < 0 )
21422142 goto fail ;
21432143
0 commit comments