summaryrefslogtreecommitdiffstatshomepage
path: root/py/objstr.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-15 07:28:19 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-15 07:28:19 +0300
commita47b64ae2dd81e45da082c6337aaf5fcef4da75c (patch)
tree48912484589ae106bedbcd17f463fdc802cc8744 /py/objstr.c
parent0c124c3123a6c7607375e2df0c49edef577a8b8d (diff)
downloadmicropython-a47b64ae2dd81e45da082c6337aaf5fcef4da75c.tar.gz
micropython-a47b64ae2dd81e45da082c6337aaf5fcef4da75c.zip
objstringio: Implement io.BytesIO.
Done in generalized manner, allowing any stream class to be specified as working with bytes.
Diffstat (limited to 'py/objstr.c')
-rw-r--r--py/objstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objstr.c b/py/objstr.c
index b5f40551f3..1448f0b95f 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -54,7 +54,7 @@ const mp_obj_t mp_const_empty_bytes;
STATIC mp_obj_t mp_obj_new_str_iterator(mp_obj_t str);
STATIC mp_obj_t mp_obj_new_bytes_iterator(mp_obj_t str);
-STATIC mp_obj_t str_new(const mp_obj_type_t *type, const byte* data, uint len);
+mp_obj_t str_new(const mp_obj_type_t *type, const byte* data, uint len);
STATIC NORETURN void bad_implicit_conversion(mp_obj_t self_in);
STATIC NORETURN void arg_type_mixup();
@@ -1612,7 +1612,7 @@ mp_obj_t mp_obj_str_builder_end(mp_obj_t o_in) {
return o;
}
-STATIC mp_obj_t str_new(const mp_obj_type_t *type, const byte* data, uint len) {
+mp_obj_t str_new(const mp_obj_type_t *type, const byte* data, uint len) {
mp_obj_str_t *o = m_new_obj(mp_obj_str_t);
o->base.type = type;
o->len = len;