]> granicus.if.org Git - python/commitdiff
Code style fixup: No need for double ((parenthesis)) and use {} on an if else.
authorGregory P. Smith <greg@krypto.org>
Tue, 11 Dec 2012 04:22:31 +0000 (20:22 -0800)
committerGregory P. Smith <greg@krypto.org>
Tue, 11 Dec 2012 04:22:31 +0000 (20:22 -0800)
1  2 
Modules/arraymodule.c

index 3f5aa8b361eda396e51aa8bac294bf6060fd91d1,475acb469203aed83b5311776af723da614d2f73..710761e52d2af2e7087b163aad8b92768592d54e
@@@ -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;