From ce4dc41b1a2be5b5335bcbc0865b145852a5c0e5 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 18 Aug 2000 19:30:40 +0000 Subject: [PATCH] PyUnicode_AsUTF8String(): /F picks up what I missed: the local var `str' is no longer necessary. Gotta turn on -Wall! --- Objects/unicodeobject.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 1d35c3d3805..11146ff0dd8 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -901,8 +901,6 @@ PyObject *PyUnicode_EncodeUTF8(const Py_UNICODE *s, PyObject *PyUnicode_AsUTF8String(PyObject *unicode) { - PyObject *str; - if (!PyUnicode_Check(unicode)) { PyErr_BadArgument(); return NULL;