From 279281e43c7e949561098748956429d7baf03ef6 Mon Sep 17 00:00:00 2001 From: nediamond Date: Wed, 28 Jun 2017 00:31:31 -0400 Subject: [PATCH 1/3] Update test_imagedraw.py --- Tests/test_imagedraw.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Tests/test_imagedraw.py b/Tests/test_imagedraw.py index 0760acd45..cddb838e2 100644 --- a/Tests/test_imagedraw.py +++ b/Tests/test_imagedraw.py @@ -417,7 +417,6 @@ class TestImageDraw(PillowTestCase): im, centre_point, ImageColor.getrgb("red"), thresh=30) del draw - im.save("x.png") # Assert self.assert_image_equal( im, Image.open("Tests/images/imagedraw_floodfill2.png")) From 1cd7e3c26014bf7d6b3c79123fe0d430548532f9 Mon Sep 17 00:00:00 2001 From: nediamond Date: Wed, 28 Jun 2017 00:32:06 -0400 Subject: [PATCH 2/3] Update test_imagedraw.py --- Tests/test_imagedraw.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/test_imagedraw.py b/Tests/test_imagedraw.py index cddb838e2..d441ae34d 100644 --- a/Tests/test_imagedraw.py +++ b/Tests/test_imagedraw.py @@ -417,6 +417,7 @@ class TestImageDraw(PillowTestCase): im, centre_point, ImageColor.getrgb("red"), thresh=30) del draw + # Assert self.assert_image_equal( im, Image.open("Tests/images/imagedraw_floodfill2.png")) From 7ac6f769c434c133c9c3fada110d37027ffbc412 Mon Sep 17 00:00:00 2001 From: nediamond Date: Thu, 29 Jun 2017 11:25:03 -0400 Subject: [PATCH 3/3] Update ImageDraw.py --- PIL/ImageDraw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/ImageDraw.py b/PIL/ImageDraw.py index 0e9ca832f..fd09e86c3 100644 --- a/PIL/ImageDraw.py +++ b/PIL/ImageDraw.py @@ -329,7 +329,7 @@ def floodfill(image, xy, value, border=None, thresh=0): :param thresh: Optional threshold value which specifies a maximum tolerable difference of a pixel value from the 'background' in order for it to be replaced. Useful for filling regions of non- - homogenous, but similar, colors. + homogeneous, but similar, colors. """ # based on an implementation by Eric S. Raymond pixel = image.load()