mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 02:36:17 +03:00
Always cast to a tuple
Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
This commit is contained in:
parent
69a81dd867
commit
f9f367fe54
|
@ -1565,9 +1565,7 @@ class Image:
|
|||
self.load()
|
||||
if self.pyaccess:
|
||||
return self.pyaccess.getpixel(xy)
|
||||
if isinstance(xy, list):
|
||||
xy = tuple(xy)
|
||||
return self.im.getpixel(xy)
|
||||
return self.im.getpixel(tuple(xy))
|
||||
|
||||
def getprojection(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user