commit | 4954b8dc5305de72ce618522522a2910c3a34126 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Wed Sep 27 08:44:03 2017 +0300 |
committer | GitHub <noreply@github.com> | Wed Sep 27 08:44:03 2017 +0300 |
tree | 5331ebcc48c8adfeafd0585955e5459e249534c6 | |
parent | d0b9dc33676bdad217d5074954c1b37d4ca54a10 [diff] [blame] |
[2.7] bpo-25359: Add missed "goto error" after setting an exception. (GH-3712) (#3779) (cherry picked from commit d6238a76c655e0feb13478505220dc9049f1682f)
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c index d9e036d..bf37f72 100644 --- a/Modules/_io/textio.c +++ b/Modules/_io/textio.c
@@ -907,6 +907,7 @@ else { PyErr_SetString(PyExc_IOError, "could not determine default encoding"); + goto error; } /* Check we have been asked for a real text encoding */