diff options
| author | Roy Hooper <rhooper@toybox.ca> | 2019-11-25 20:21:00 -0500 |
|---|---|---|
| committer | Roy Hooper <rhooper@toybox.ca> | 2019-11-25 20:21:00 -0500 |
| commit | 0ef9344c17343aa01aadc5a261eba21012325132 (patch) | |
| tree | 8e6db6379ebfc73bdd864793b18d9081ff51e6da /shared-bindings/_pixelbuf | |
| parent | d4ed258b74ccf526ebd2a206b5d8ef035380c535 (diff) | |
make pixelbuf iterable
Diffstat (limited to 'shared-bindings/_pixelbuf')
| -rw-r--r-- | shared-bindings/_pixelbuf/PixelBuf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shared-bindings/_pixelbuf/PixelBuf.c b/shared-bindings/_pixelbuf/PixelBuf.c index 851c3a276..0b1bd3e89 100644 --- a/shared-bindings/_pixelbuf/PixelBuf.c +++ b/shared-bindings/_pixelbuf/PixelBuf.c @@ -454,6 +454,7 @@ const mp_obj_type_t pixelbuf_pixelbuf_type = { .subscr = pixelbuf_pixelbuf_subscr, .make_new = pixelbuf_pixelbuf_make_new, .unary_op = pixelbuf_pixelbuf_unary_op, + .getiter = mp_obj_new_generic_iterator, .print = NULL, .locals_dict = (mp_obj_t)&pixelbuf_pixelbuf_locals_dict, }; |
