fix non-numpy write_point_list

This commit is contained in:
Jan Petykiewicz 2020-05-19 00:21:50 -07:00
parent d25f3f1598
commit 715fe7ea24

View File

@ -1559,10 +1559,9 @@ def read_point_list(stream: io.BufferedIOBase) -> List[List[int]]:
points = [] points = []
x = 0 x = 0
y = 0 y = 0
for _ in range(list_len): for delta in deltas:
delta = Delta.read(stream) x += delta[0]
x += delta.x y += delta[1]
y += delta.y
points.append([x, y]) points.append([x, y])
else: else:
raise InvalidDataError('Invalid point list type') raise InvalidDataError('Invalid point list type')