[Python-checkins] r46453 - python/branches/sreifschneider-newnewexcept/Objects/exceptions.c
georg.brandl
python-checkins at python.org
Sat May 27 13:55:20 CEST 2006
Author: georg.brandl
Date: Sat May 27 13:55:20 2006
New Revision: 46453
Modified:
python/branches/sreifschneider-newnewexcept/Objects/exceptions.c
Log:
Remove some superfluous XDECREFs.
Modified: python/branches/sreifschneider-newnewexcept/Objects/exceptions.c
==============================================================================
--- python/branches/sreifschneider-newnewexcept/Objects/exceptions.c (original)
+++ python/branches/sreifschneider-newnewexcept/Objects/exceptions.c Sat May 27 13:55:20 2006
@@ -790,8 +790,7 @@
return (PyObject *)self;
failed:
/* Could not set errno. */
- Py_XDECREF(o_errcode);
- Py_XDECREF(self);
+ Py_DECREF(self);
return NULL;
}
@@ -820,7 +819,7 @@
return -1;
posix_errno = winerror_to_errno(errcode);
- Py_XDECREF(self->winerror);
+ Py_DECREF(self->winerror);
self->winerror = self->myerrno;
o_errcode = PyInt_FromLong(posix_errno);
@@ -2057,10 +2056,10 @@
bltinmod = PyImport_ImportModule("__builtin__");
if (bltinmod == NULL)
- Py_FatalError("exceptions bootstrapping error.");
+ Py_FatalError("exceptions bootstrapping error.");
bdict = PyModule_GetDict(bltinmod);
if (bdict == NULL)
- Py_FatalError("exceptions bootstrapping error.");
+ Py_FatalError("exceptions bootstrapping error.");
POST_INIT(BaseException)
POST_INIT(Exception)
More information about the Python-checkins
mailing list