From 3c089510b3aded3f29a8f8bb9e526ae2d06bab77 Mon Sep 17 00:00:00 2001 From: rbong Date: Mon, 4 Jan 2021 22:51:06 -0500 Subject: [PATCH] Fix error creating palettes --- png.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): """