From 380eec3b4151a701b054d94d33dd5a805e5ecad3 Mon Sep 17 00:00:00 2001 From: Robin B Date: Fri, 5 Jan 2018 19:45:45 +0100 Subject: [PATCH] Fix: use PIL's frombytes(), fromstring() has been deprecated --- evic/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evic/cli.py b/evic/cli.py index 607e97d..47ab611 100644 --- a/evic/cli.py +++ b/evic/cli.py @@ -524,7 +524,7 @@ def screenshot(output): data = dev.read_screen() # create the image from screen data - im = Image.fromstring("1",(64,128),bytes(data)) + im = Image.frombytes("1",(64,128),bytes(data)) # Write the image to the file with handle_exceptions(IOError):