Skip to content

Commit

Permalink
Fix #68: Broken after upgrade to python 3.9
Browse files Browse the repository at this point in the history
With Python 3.2 `array.tostring()` was deprecated and renamed to
`array.tobytes()`. Now, with Python 3.9, `array.tostring()` was finally
removed.
  • Loading branch information
SammysHP authored and Roger committed Dec 7, 2020
1 parent abcab0e commit a41d0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion escrotum/util.py
Expand Up @@ -113,7 +113,7 @@ def bgra2rgba(pixels, width, height):
for y in range (height):
i = (width * y + x) * 4
data[i + 0], data[i + 2] = data[i + 2], data[i + 0]
return data.tostring()
return data.tobytes()


def cmd_exists(cmd):
Expand Down

0 comments on commit a41d0f1

Please sign in to comment.