summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-11-07 12:00:05 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2011-11-07 12:00:05 (GMT)
commitd10759f6edb713e945d1caf19d74ea4e12da7894 (patch)
tree81ca1ffcbe397faaa4119100a44dc3c21668da9c /Python
parente9b11c1cd8ad68e829ae627ef48bdbc940f8e7fb (diff)
downloadcpython-d10759f6edb713e945d1caf19d74ea4e12da7894.zip
cpython-d10759f6edb713e945d1caf19d74ea4e12da7894.tar.gz
cpython-d10759f6edb713e945d1caf19d74ea4e12da7894.tar.bz2
Make _PyUnicode_FromId return borrowed references.
http://mail.python.org/pipermail/python-dev/2011-November/114347.html
Diffstat (limited to 'Python')
-rw-r--r--Python/_warnings.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 5846426..2e5b0dd 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -666,10 +666,8 @@ warnings_warn_explicit(PyObject *self, PyObject *args, PyObject *kwds)
if ((tmp = _PyUnicode_FromId(&PyId_get_source)) == NULL)
return NULL;
- Py_DECREF(tmp);
if ((tmp = _PyUnicode_FromId(&PyId_splitlines)) == NULL)
return NULL;
- Py_DECREF(tmp);
/* Check/get the requisite pieces needed for the loader. */
loader = PyDict_GetItemString(module_globals, "__loader__");