Fix typo: formats -> format. (Only mattered in wide unicode builds.)

This commit is contained in:
Guido van Rossum 2007-10-14 20:46:15 +00:00
parent 6c91378011
commit 7c4c6c5d8a

View 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
}