mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Removed comment that Python 2 behaviour is deprecated
This commit is contained in:
parent
94ed100bb2
commit
3e47ddbeeb
|
@ -68,7 +68,6 @@ class ImagePalette(object):
|
|||
return self.palette
|
||||
arr = array.array("B", self.palette)
|
||||
if hasattr(arr, 'tobytes'):
|
||||
# py3k has a tobytes, tostring is deprecated.
|
||||
return arr.tobytes()
|
||||
return arr.tostring()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user