Commit 4954b8dc authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

[2.7] bpo-25359: Add missed "goto error" after setting an exception. (GH-3712) (#3779)

(cherry picked from commit d6238a76)
parent d0b9dc33
......@@ -907,6 +907,7 @@ textiowrapper_init(textio *self, PyObject *args, PyObject *kwds)
else {
PyErr_SetString(PyExc_IOError,
"could not determine default encoding");
goto error;
}
/* Check we have been asked for a real text encoding */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment