From: Gregory P. Smith Date: Tue, 11 Dec 2012 04:22:31 +0000 (-0800) Subject: Code style fixup: No need for double ((parenthesis)) and use {} on an if else. X-Git-Tag: v3.3.1rc1~537 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08d5ca6cd4a30e2f6a8df48fb9231a5321f72efc;p=python Code style fixup: No need for double ((parenthesis)) and use {} on an if else. --- 08d5ca6cd4a30e2f6a8df48fb9231a5321f72efc diff --cc Modules/arraymodule.c index 3f5aa8b361,475acb4692..710761e52d --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@@ -1552,9 -1491,9 +1552,9 @@@ append Unicode data to an array of som static PyObject * array_tounicode(arrayobject *self, PyObject *unused) { - Py_UNICODE typecode; + char typecode; typecode = self->ob_descr->typecode; - if ((typecode != 'u')) { + if (typecode != 'u') { PyErr_SetString(PyExc_ValueError, "tounicode() may only be called on unicode type arrays"); return NULL;