From 94c41bb06f6482ece0717c5bd63266b8da063caa Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 28 Mar 2017 22:37:26 +1100 Subject: py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. Saves 168 bytes on bare-arm. --- py/objstringio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objstringio.c') diff --git a/py/objstringio.c b/py/objstringio.c index 61a30752e..88659deb8 100644 --- a/py/objstringio.c +++ b/py/objstringio.c @@ -39,7 +39,7 @@ #if MICROPY_CPYTHON_COMPAT STATIC void check_stringio_is_open(const mp_obj_stringio_t *o) { if (o->vstr == NULL) { - mp_raise_msg(&mp_type_ValueError, "I/O operation on closed file"); + mp_raise_ValueError("I/O operation on closed file"); } } #else -- cgit v1.2.3