Skip to content

Commit

Permalink
Fix error creating palettes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbong committed Jan 5, 2021
1 parent b41f5c8 commit 3c08951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion png.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 3c08951

Please sign in to comment.