mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 13:14:27 +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
|
return self.palette
|
||||||
arr = array.array("B", self.palette)
|
arr = array.array("B", self.palette)
|
||||||
if hasattr(arr, 'tobytes'):
|
if hasattr(arr, 'tobytes'):
|
||||||
# py3k has a tobytes, tostring is deprecated.
|
|
||||||
return arr.tobytes()
|
return arr.tobytes()
|
||||||
return arr.tostring()
|
return arr.tostring()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user