diff options
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r-- | Objects/fileobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 9ae068c..e4f7fc4 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -574,8 +574,8 @@ PyFile_SetEncodingAndErrors(PyObject *f, const char *enc, char* errors) oerrors = Py_None; Py_INCREF(Py_None); } - Py_SETREF(file->f_encoding, str); - Py_SETREF(file->f_errors, oerrors); + Py_XSETREF(file->f_encoding, str); + Py_XSETREF(file->f_errors, oerrors); return 1; } |