diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 15:05:12 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 15:05:12 (GMT) |
| commit | 763a61ca954a1c5a1b56411dd5e57a7d58afff75 (patch) | |
| tree | 36c3a606196c2a37e8865b5fbf78531e21a032ea /Objects/fileobject.c | |
| parent | 149d080871f9bef276a3d4fa251ba6fbc910f770 (diff) | |
| download | cpython-763a61ca954a1c5a1b56411dd5e57a7d58afff75.zip cpython-763a61ca954a1c5a1b56411dd5e57a7d58afff75.tar.gz cpython-763a61ca954a1c5a1b56411dd5e57a7d58afff75.tar.bz2 | |
Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
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 e4f7fc4..9ae068c 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_XSETREF(file->f_encoding, str); - Py_XSETREF(file->f_errors, oerrors); + Py_SETREF(file->f_encoding, str); + Py_SETREF(file->f_errors, oerrors); return 1; } |
