diff options
author | Thomas Wouters <thomas@python.org> | 2006-04-15 17:28:34 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-04-15 17:28:34 (GMT) |
commit | edf17d8798e65c10c970ef86f7374f6c1b51027a (patch) | |
tree | 743ac540a38640d5b550c9b9636ca8ee5f86a0dd /Modules/pyexpat.c | |
parent | ed8f78312654d74329892252d720d78765495c38 (diff) | |
download | cpython-edf17d8798e65c10c970ef86f7374f6c1b51027a.zip cpython-edf17d8798e65c10c970ef86f7374f6c1b51027a.tar.gz cpython-edf17d8798e65c10c970ef86f7374f6c1b51027a.tar.bz2 |
Use Py_CLEAR instead of in-place DECREF/XDECREF or custom macros, for
tp_clear methods.
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r-- | Modules/pyexpat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index b6e927d..fbef4e1 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -1669,8 +1669,7 @@ static int xmlparse_clear(xmlparseobject *op) { clear_handlers(op, 0); - Py_XDECREF(op->intern); - op->intern = 0; + Py_CLEAR(op->intern); return 0; } #endif |