From 12fa5b3a66d6f0034113a56c7d647c7bac5be74c Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 24 Feb 2017 15:13:07 +0100 Subject: Switch exception throwing to mp_raise helpers. It saves a little code space each time to share the call. --- py/objset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objset.c') diff --git a/py/objset.c b/py/objset.c index fc124fcd8..97fce61d6 100644 --- a/py/objset.c +++ b/py/objset.c @@ -68,7 +68,7 @@ STATIC void check_set(mp_obj_t o) { if (MP_OBJ_IS_TYPE(o, &mp_type_frozenset)) { // Mutable method called on frozenset; emulate CPython behavior, eg: // AttributeError: 'frozenset' object has no attribute 'add' - mp_raise_msg(&mp_type_AttributeError, "'frozenset' has no such attribute"); + mp_raise_AttributeError("'frozenset' has no such attribute"); } #endif mp_check_self(MP_OBJ_IS_TYPE(o, &mp_type_set)); -- cgit v1.2.3