From 435f5393852939afbee71704121566b54ad4e58b Mon Sep 17 00:00:00 2001 From: efranken Date: Fri, 24 May 2024 12:48:50 -0400 Subject: [PATCH] Fix range usage in Touches1D class to prevent TypeError --- touch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/touch.py b/touch.py index 9ee6ef1..8791205 100644 --- a/touch.py +++ b/touch.py @@ -56,7 +56,7 @@ def __init__(self, data): verticalSizes = data[int(len(data)/2):] self.touches = [] - for i in range[0:len(verticalLocations)]: + for i in range(0,len(verticalLocations)): if verticalLocations[i] is not -1: self.touches.append((verticalLocations[i], verticalSizes[i]))