From 1a5162c70bc9090db8ef96f7ea4d4d7b5db823ff Mon Sep 17 00:00:00 2001 From: Simon Albinsson Date: Mon, 23 Apr 2018 20:53:14 +0000 Subject: [PATCH] sgp30: Now passes tests under py3k --- sgp30/sgp30.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgp30/sgp30.py b/sgp30/sgp30.py index 313ff75..12fa799 100644 --- a/sgp30/sgp30.py +++ b/sgp30/sgp30.py @@ -41,7 +41,7 @@ class Sgp30(): Sgp30Answer = namedtuple("Sgp30Answer",["data","raw","crc_ok"]) def _raw_validate_crc(s,r): - a = zip(r[0::3],r[1::3]) + a = list(zip(r[0::3],r[1::3])) crc = r[2::3] == [Crc8().hash(i) for i in a ] return(crc,a)