summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2003-01-08 20:38:39 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2003-01-08 20:38:39 (GMT)
commit034d97605d5300721310a0d7320b41f67237007b (patch)
tree0eaa68d3a5a5edfcc39f3d7be9fee687785f4f3d /Objects
parent8a978f7cdeaf7c96ef5b53a501bcd689bcd90820 (diff)
downloadcpython-034d97605d5300721310a0d7320b41f67237007b.zip
cpython-034d97605d5300721310a0d7320b41f67237007b.tar.gz
cpython-034d97605d5300721310a0d7320b41f67237007b.tar.bz2
Remove variable owned from PyUnicode_FromEncodedObject, which is unused
(except for Py_DECREF calls) since the introduction of __unicode__.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 8dcec51..1e4907a 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -452,7 +452,6 @@ PyObject *PyUnicode_FromEncodedObject(register PyObject *obj,
{
const char *s = NULL;
int len;
- int owned = 0;
PyObject *v;
if (obj == NULL) {
@@ -510,15 +509,9 @@ PyObject *PyUnicode_FromEncodedObject(register PyObject *obj,
else
v = PyUnicode_Decode(s, len, encoding, errors);
- if (owned) {
- Py_DECREF(obj);
- }
return v;
onError:
- if (owned) {
- Py_DECREF(obj);
- }
return NULL;
}