ponty / pyscreenshot

Python screenshot library, replacement for the Pillow ImageGrab module on Linux.
BSD 2-Clause "Simplified" License
502 stars 88 forks source link

Bytearray instead of bytes TypeError fix. #49

Closed dosssman closed 6 years ago

dosssman commented 6 years ago

Updated 2 deprecated functions Under Arch Linux, using Python 3 and wxpython installed with pip3 Any call to pyscreenshot.grab() would return a: TypeError: argument 1 must be read-only bytes-like object, not bytearray. Therefore, adding bytes() to convert myWxImage.GetData() from bytearray to bytes

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.1%) to 39.694% when pulling 8712a480f7df5b047f12c4a6be392734d555474e on dosssman:patch-1 into 2730487ebc44282ec78b83532f424368b4ce2fb8 on ponty:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.1%) to 39.694% when pulling 8712a480f7df5b047f12c4a6be392734d555474e on dosssman:patch-1 into 2730487ebc44282ec78b83532f424368b4ce2fb8 on ponty:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.1%) to 39.694% when pulling 8712a480f7df5b047f12c4a6be392734d555474e on dosssman:patch-1 into 2730487ebc44282ec78b83532f424368b4ce2fb8 on ponty:master.

ponty commented 6 years ago

This was implemeted in #51