Removed comment that Python 2 behaviour is deprecated

This commit is contained in:
Andrew Murray 2015-07-13 17:21:09 +10:00
parent 94ed100bb2
commit 3e47ddbeeb

View File

@ -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()