From 9a348fc84032772bba743cc1e4aa195719c5c941 Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Tue, 28 Jul 2015 23:06:17 +0200 Subject: [PATCH] cc3200: Add socket.makefile() --- cc3200/mods/modusocket.c | 1 + cc3200/qstrdefsport.h | 1 + 2 files changed, 2 insertions(+) diff --git a/cc3200/mods/modusocket.c b/cc3200/mods/modusocket.c index 3289c6f637..bc6c3c65be 100644 --- a/cc3200/mods/modusocket.c +++ b/cc3200/mods/modusocket.c @@ -406,6 +406,7 @@ STATIC const mp_map_elem_t socket_locals_dict_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_setsockopt), (mp_obj_t)&socket_setsockopt_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_settimeout), (mp_obj_t)&socket_settimeout_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_setblocking), (mp_obj_t)&socket_setblocking_obj }, + { MP_OBJ_NEW_QSTR(MP_QSTR_makefile), (mp_obj_t)&mp_identity_obj }, // stream methods { MP_OBJ_NEW_QSTR(MP_QSTR_read), (mp_obj_t)&mp_stream_read_obj }, diff --git a/cc3200/qstrdefsport.h b/cc3200/qstrdefsport.h index 38eb790183..1469924158 100644 --- a/cc3200/qstrdefsport.h +++ b/cc3200/qstrdefsport.h @@ -226,6 +226,7 @@ Q(settimeout) Q(setblocking) Q(setsockopt) Q(close) +Q(makefile) Q(protocol) Q(error) Q(timeout)