diff options
| author | Roy Hooper <rhooper@toybox.ca> | 2020-01-02 18:00:36 -0500 |
|---|---|---|
| committer | Roy Hooper <rhooper@toybox.ca> | 2020-01-02 18:00:36 -0500 |
| commit | ccf158b03009d3de7ec8d70584044cd7f7bc1dd3 (patch) | |
| tree | 85d80ed2eb2d8986b37900095eebf5807aeb5fc6 /shared-bindings | |
| parent | fdddb54db41fce45abaa9d4254f44de4dab4b631 (diff) | |
raise mp_raise_NotImplementedError
Diffstat (limited to 'shared-bindings')
| -rw-r--r-- | shared-bindings/_pixelbuf/PixelBuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-bindings/_pixelbuf/PixelBuf.c b/shared-bindings/_pixelbuf/PixelBuf.c index 6eb35c51a..3e9319047 100644 --- a/shared-bindings/_pixelbuf/PixelBuf.c +++ b/shared-bindings/_pixelbuf/PixelBuf.c @@ -332,11 +332,11 @@ STATIC mp_obj_t pixelbuf_pixelbuf_unary_op(mp_unary_op_t op, mp_obj_t self_in) { //| .. method:: show() //| -//| Does nothing unless subclassed. +//| Must be implemented in subclasses. //| STATIC mp_obj_t pixelbuf_pixelbuf_show(mp_obj_t self_in) { - return mp_const_none; + mp_raise_NotImplementedError(NULL); } STATIC MP_DEFINE_CONST_FUN_OBJ_1(pixelbuf_pixelbuf_show_obj, pixelbuf_pixelbuf_show); |
