diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2011-11-07 13:00:05 +0100 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2011-11-07 13:00:05 +0100 |
commit | d10759f6edb713e945d1caf19d74ea4e12da7894 (patch) | |
tree | 81ca1ffcbe397faaa4119100a44dc3c21668da9c /Objects/unicodeobject.c | |
parent | e9b11c1cd8ad68e829ae627ef48bdbc940f8e7fb (diff) | |
download | cpython-git-d10759f6edb713e945d1caf19d74ea4e12da7894.tar.gz |
Make _PyUnicode_FromId return borrowed references.
http://mail.python.org/pipermail/python-dev/2011-November/114347.html
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 8f82502ff7..3c14b6ba50 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1723,7 +1723,6 @@ _PyUnicode_FromId(_Py_Identifier *id) id->next = static_strings; static_strings = id; } - Py_INCREF(id->object); return id->object; } |