summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2002-10-04 00:09:38 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2002-10-04 00:09:38 (GMT)
commitda7efaa6814a3e5bd264615685244170460465fe (patch)
treec8a428971f5c2c5b64a1a572c9ed6346d30ce02c /Python/errors.c
parent7995eb22f19018b65fea4f9565b1a7219d5b8e70 (diff)
downloadcpython-da7efaa6814a3e5bd264615685244170460465fe.zip
cpython-da7efaa6814a3e5bd264615685244170460465fe.tar.gz
cpython-da7efaa6814a3e5bd264615685244170460465fe.tar.bz2
Fix errors to pep277 checkin identified by Neal Norwitz.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/errors.c b/Python/errors.c
index ccc2ae3..9a2597b 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -334,7 +334,7 @@ PyErr_SetFromErrnoWithFilename(PyObject *exc, char *filename)
{
PyObject *name = filename ? PyString_FromString(filename) : NULL;
PyObject *result = PyErr_SetFromErrnoWithFilenameObject(exc, name);
- Py_DECREF(name);
+ Py_XDECREF(name);
return result;
}
@@ -444,7 +444,7 @@ PyObject *PyErr_SetFromWindowsErrWithFilename(
PyObject *result = PyErr_SetExcFromWindowsErrWithFilenameObject(
PyExc_WindowsError,
ierr, name);
- Py_XDECREF(result);
+ Py_XDECREF(name);
return result;
}
@@ -459,7 +459,7 @@ PyObject *PyErr_SetFromWindowsErrWithUnicodeFilename(
PyObject *result = PyErr_SetExcFromWindowsErrWithFilenameObject(
PyExc_WindowsError,
ierr, name);
- Py_XDECREF(result);
+ Py_XDECREF(name);
return result;
}
#endif /* Py_WIN_WIDE_FILENAMES */