summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-09-22 10:50:47 +1000
committerDamien George <damien.p.george@gmail.com>2016-09-22 10:50:47 +1000
commit79ec869f95934cbcdec01219121551333b1aacb0 (patch)
tree8e910f9f97d6bef54a5bff10c50971e974b0be9e /py
parentc528489eee0138753d0d581a4b5db8fc277f8cc8 (diff)
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.
Diffstat (limited to 'py')
-rw-r--r--py/stream.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/py/stream.c b/py/stream.c
index eef9080b7..24f47e24c 100644
--- a/py/stream.c
+++ b/py/stream.c
@@ -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"));
- }
}
}