diff --git a/png.py b/png.py index 5343308..c65e53d 100644 --- a/png.py +++ b/png.py @@ -194,7 +194,7 @@ def isarray(x): return isinstance(x, array) def tostring(row): - return row.tostring() + return row.tobytes() def interleave_planes(ipixels, apixels, ipsize, apsize): """