summaryrefslogtreecommitdiff
path: root/py/builtin.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-15 12:50:21 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-15 12:50:21 +0100
commitb013aea80927ae85461f382c601f8ac40c06497a (patch)
tree3ab8045aca7eb8f7d95dabab2b4a525aac85b969 /py/builtin.c
parent58051117322bc7cd55c0d35168c0563a880c7689 (diff)
py: Fix builtin hex to print prefix.
I was too hasty. Still a one-liner though.
Diffstat (limited to 'py/builtin.c')
-rw-r--r--py/builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/builtin.c b/py/builtin.c
index b02608b40..5911fa634 100644
--- a/py/builtin.c
+++ b/py/builtin.c
@@ -208,7 +208,7 @@ STATIC mp_obj_t mp_builtin_hash(mp_obj_t o_in) {
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_hash_obj, mp_builtin_hash);
STATIC mp_obj_t mp_builtin_hex(mp_obj_t o_in) {
- return mp_binary_op(MP_BINARY_OP_MODULO, MP_OBJ_NEW_QSTR(MP_QSTR__percent_x), o_in);
+ return mp_binary_op(MP_BINARY_OP_MODULO, MP_OBJ_NEW_QSTR(MP_QSTR__percent__hash_x), o_in);
}
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_hex_obj, mp_builtin_hex);