Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be1c60c + 04d09eb commit 2e1c4e5Copy full SHA for 2e1c4e5
1 file changed
Modules/_io/textio.c
@@ -2441,14 +2441,10 @@ textiowrapper_tell(textio *self, PyObject *args)
2441
if (saved_state) {
2442
PyObject *type, *value, *traceback;
2443
PyErr_Fetch(&type, &value, &traceback);
2444
-
2445
res = _PyObject_CallMethodId(self->decoder, &PyId_setstate, "(O)", saved_state);
+ _PyErr_ChainExceptions(type, value, traceback);
2446
Py_DECREF(saved_state);
2447
- if (res == NULL)
2448
- return NULL;
2449
- Py_DECREF(res);
2450
2451
- PyErr_Restore(type, value, traceback);
+ Py_XDECREF(res);
2452
}
2453
return NULL;
2454
0 commit comments