Skip to content

Commit 5066917

Browse files
wiredfoolradarhere
andauthored
Apply suggestions from code review
Co-authored-by: Andrew Murray <[email protected]>
1 parent a4f4775 commit 5066917

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/test_pyarrow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _test_img_equals_pyarray(
2929
px = img.load()
3030
assert px is not None
3131
if elts_per_pixel > 1 and mask is None:
32-
# have to do element wise comparison when we're comparing
32+
# have to do element-wise comparison when we're comparing
3333
# flattened r,g,b,a to a pixel.
3434
mask = list(range(elts_per_pixel))
3535
for x in range(0, img.size[0], int(img.size[0] / 10)):
@@ -56,7 +56,7 @@ def _test_img_equals_int32_pyarray(
5656
px = img.load()
5757
assert px is not None
5858
if mask is None:
59-
# have to do element wise comparison when we're comparing
59+
# have to do element-wise comparison when we're comparing
6060
# flattened rgba in an uint32 to a pixel.
6161
mask = list(range(elts_per_pixel))
6262
for x in range(0, img.size[0], int(img.size[0] / 10)):

src/libImaging/Storage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ ImagingNewArrow(
757757
if (strcmp(schema->format, "C") == 0 // uint8
758758
&& im->pixelsize == 4 // storage as 32 bpc
759759
&& schema->n_children == 0 // make sure schema is well formed.
760-
&& strcmp(im->arrow_band_format, "C") == 0 // Expected Format
760+
&& strcmp(im->arrow_band_format, "C") == 0 // expected format
761761
&& 4 * pixels == external_array->length) { // expected length
762762
// single flat array, interleaved storage.
763763
if (ImagingBorrowArrow(im, external_array, 1, array_capsule)) {

0 commit comments

Comments
 (0)