aboutsummaryrefslogtreecommitdiff
path: root/py/objnone.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-15 11:34:50 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-15 11:34:50 +0000
commita71c83a1d1aeca1d81d7c673929f8e836dec131e (patch)
tree5c49441e19c3feffbc792eec7ecfbc3ca3036830 /py/objnone.c
parent8ac72b9d000ecc48a2d558bdb7c73c7f98d4be62 (diff)
Change mp_obj_type_t.name from const char * to qstr.
Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method.
Diffstat (limited to 'py/objnone.c')
-rw-r--r--py/objnone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objnone.c b/py/objnone.c
index 310478734..73f2601be 100644
--- a/py/objnone.c
+++ b/py/objnone.c
@@ -25,7 +25,7 @@ STATIC mp_obj_t none_unary_op(int op, mp_obj_t o_in) {
const mp_obj_type_t none_type = {
{ &mp_const_type },
- "NoneType",
+ .name = MP_QSTR_NoneType,
.print = none_print,
.unary_op = none_unary_op,
};