Commit 79ec869f authored by Damien George's avatar Damien George
Browse files

py/stream: Remove unnecessary check for NULL return from vstr_extend.

vstr_extend will now only return NULL if the vstr is a fixed buffer, which
in this case it is not.
parent c528489e
......@@ -355,10 +355,6 @@ STATIC mp_obj_t stream_readall(mp_obj_t self_in) {
} else {
p = vstr_extend(&vstr, DEFAULT_BUFFER_SIZE);
current_read = DEFAULT_BUFFER_SIZE;
if (p == NULL) {
// TODO
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_OSError/*&mp_type_RuntimeError*/, "Out of memory"));
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment