Skip to content

Commit

Permalink
Merge pull request #16 from rbong/fix-toarray
Browse files Browse the repository at this point in the history
Update reference to array.array.tostring()
  • Loading branch information
mattcurrie authored Feb 8, 2021
2 parents 59808c4 + 3c08951 commit 494b3ac
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 494b3ac

Please sign in to comment.