diff options
author | John R. Lenton <jlenton@gmail.com> | 2014-01-05 22:11:01 +0000 |
---|---|---|
committer | John R. Lenton <jlenton@gmail.com> | 2014-01-05 22:11:01 +0000 |
commit | 8428b8f3c94fb4adab6b094c1e0718168ebd8cbd (patch) | |
tree | 06cfd0bcfb68771884761209939c47adc8457657 /py/objinstance.c | |
parent | f1c6ad46afa3eaf6df999cd51eb406110b6cac69 (diff) | |
parent | 12e2656472bf53e467c066eda6f3e177a97210ca (diff) | |
download | micropython-8428b8f3c94fb4adab6b094c1e0718168ebd8cbd.tar.gz micropython-8428b8f3c94fb4adab6b094c1e0718168ebd8cbd.zip |
Merge remote-tracking branch 'upstream/master' into list_insert
Diffstat (limited to 'py/objinstance.c')
-rw-r--r-- | py/objinstance.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/py/objinstance.c b/py/objinstance.c index e5d23af2d5..fd8cada7cb 100644 --- a/py/objinstance.c +++ b/py/objinstance.c @@ -6,6 +6,7 @@ #include "nlr.h" #include "misc.h" #include "mpconfig.h" +#include "mpqstr.h" #include "obj.h" #include "runtime.h" #include "map.h" @@ -44,7 +45,7 @@ mp_obj_t mp_obj_instance_load_attr(mp_obj_t self_in, qstr attr) { return elem->value; } } - nlr_jump(mp_obj_new_exception_msg_2_args(rt_q_AttributeError, "'%s' object has no attribute '%s'", mp_obj_get_type_str(self_in), qstr_str(attr))); + nlr_jump(mp_obj_new_exception_msg_2_args(MP_QSTR_AttributeError, "'%s' object has no attribute '%s'", mp_obj_get_type_str(self_in), qstr_str(attr))); } void mp_obj_instance_load_method(mp_obj_t self_in, qstr attr, mp_obj_t *dest) { @@ -92,6 +93,7 @@ const mp_obj_type_t instance_type = { { &mp_const_type }, "instance", NULL, // print + NULL, // make_new NULL, // call_n NULL, // unary_op NULL, // binary_op |