]> granicus.if.org Git - python/commitdiff
Fix typo: formats -> format. (Only mattered in wide unicode builds.)
authorGuido van Rossum <guido@python.org>
Sun, 14 Oct 2007 20:46:15 +0000 (20:46 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 14 Oct 2007 20:46:15 +0000 (20:46 +0000)
Modules/arraymodule.c

index cc7769f162f8ce7dfacd76cca98d161f8151304e..8a24a7e06eeddf7b8a2ffae235395f7eee2f9b30 100644 (file)
@@ -1812,7 +1812,7 @@ array_buffer_getbuf(arrayobject *self, Py_buffer *view, int flags)
                 view->format = self->ob_descr->formats;
 #ifdef Py_UNICODE_WIDE
                if (self->ob_descr->typecode == 'u') {
-                       view->formats = "w";
+                       view->format = "w";
                }
 #endif
         }