summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtin.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-03-21 11:39:01 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-03-22 00:07:04 +0200
commitbe020c27a870feff9773c348fa04be8c54873f70 (patch)
tree9c867ed272e89d800bac37d689b6012dce0b0f91 /py/builtin.c
parent5972b4c05ffe6973820d24161f604ae8db0d299b (diff)
downloadmicropython-be020c27a870feff9773c348fa04be8c54873f70.tar.gz
micropython-be020c27a870feff9773c348fa04be8c54873f70.zip
py: Make 'str' be a proper type, support standard constructor args.
Diffstat (limited to 'py/builtin.c')
-rw-r--r--py/builtin.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/py/builtin.c b/py/builtin.c
index 2e0627fa5f..11b86111ec 100644
--- a/py/builtin.c
+++ b/py/builtin.c
@@ -375,16 +375,6 @@ STATIC mp_obj_t mp_builtin_sorted(uint n_args, const mp_obj_t *args, mp_map_t *k
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_sorted_obj, 1, mp_builtin_sorted);
-STATIC mp_obj_t mp_builtin_str(mp_obj_t o_in) {
- vstr_t *vstr = vstr_new();
- mp_obj_print_helper((void (*)(void*, const char*, ...))vstr_printf, vstr, o_in, PRINT_STR);
- mp_obj_t s = mp_obj_new_str((byte*)vstr->buf, vstr->len, false);
- vstr_free(vstr);
- return s;
-}
-
-MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_str_obj, mp_builtin_str);
-
// TODO: This should be type, this is just quick CPython compat hack
STATIC mp_obj_t mp_builtin_bytes(uint n_args, const mp_obj_t *args) {
if (!MP_OBJ_IS_QSTR(args[0]) && !MP_OBJ_IS_TYPE(args[0], &str_type)) {