summaryrefslogtreecommitdiff
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-20 12:16:46 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-20 12:16:46 +0200
commitba86008aac6890c5c4a2c6d30ea8110f228d483e (patch)
treec25cb83a4737b8bf8d8b60f171e374d916d8f9a5 /Objects/bytesobject.c
parentf0ba8f8e86075600cfa41ce2db1217c6fac0ffb6 (diff)
downloadcpython-ba86008aac6890c5c4a2c6d30ea8110f228d483e.tar.gz
Issue #19569: Compiler warnings are now emitted if use most of deprecated
functions.
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 779fe295db..5cdc2ca30e 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -3048,10 +3048,7 @@ striter_reduce(striterobject *it)
return Py_BuildValue("N(O)n", _PyObject_GetBuiltin("iter"),
it->it_seq, it->it_index);
} else {
- PyObject *u = PyUnicode_FromUnicode(NULL, 0);
- if (u == NULL)
- return NULL;
- return Py_BuildValue("N(N)", _PyObject_GetBuiltin("iter"), u);
+ return Py_BuildValue("N(())", _PyObject_GetBuiltin("iter"));
}
}