mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-22 21:24:46 +03:00
Fix syntax; update formatting
This commit is contained in:
parent
2b63fefe48
commit
41f667c6f2
|
@ -1734,9 +1734,11 @@ class Image:
|
||||||
# RGB or RGBA value for a P image
|
# RGB or RGBA value for a P image
|
||||||
value = self.palette.getcolor(value)
|
value = self.palette.getcolor(value)
|
||||||
|
|
||||||
if self.mode = "L":
|
if self.mode == "L":
|
||||||
if (type(xy[0]) is not int) or (type(xy[1]) is not int):
|
if (type(xy[0]) is not int) or (type(xy[1]) is not int):
|
||||||
raise TypeError(f"Expected argument xy to be a tuple (int, int) but got { xy }")
|
raise TypeError(
|
||||||
|
f"Expected argument xy to be a tuple (int, int) but got { xy }"
|
||||||
|
)
|
||||||
|
|
||||||
return self.im.putpixel(xy, value)
|
return self.im.putpixel(xy, value)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user