From 773c3776556348389180072113c77a27f7f66d58 Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Sun, 30 Oct 2022 18:45:54 -0700 Subject: [PATCH] Fix memoryview iteration in whats_left.py memoryview has no __iter__ and instead relies on the __getitem__ iteration. --- whats_left.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whats_left.py b/whats_left.py index ef97a602b3..1e5f0dac4b 100755 --- a/whats_left.py +++ b/whats_left.py @@ -200,7 +200,7 @@ def gen_methods(): "type(range(0).__iter__())", "type(str().__iter__())", "type(tuple().__iter__())", - "type(memoryview(bytearray(b'0')).__iter__())", + "type(iter(memoryview(bytearray(b'0'))))", ] methods = {}