From 16f324641f33201061fb4e79677bc760e45fb3ac Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 25 Jul 2016 00:47:00 +0300 Subject: [PATCH] py/stream.h: Remove dated comment of POSIX-specificity of EAGAIN. We have adopted POSIX-compatible error numbers as MicroPython's native. --- py/stream.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/py/stream.h b/py/stream.h index 7d43936754..bd3fa0bdc7 100644 --- a/py/stream.h +++ b/py/stream.h @@ -83,8 +83,6 @@ mp_uint_t mp_stream_rw(mp_obj_t stream, void *buf, mp_uint_t size, int *errcode, void mp_stream_write_adaptor(void *self, const char *buf, size_t len); #if MICROPY_STREAMS_NON_BLOCK -// TODO: This is POSIX-specific (but then POSIX is the only real thing, -// and anything else just emulates it, right?) #define mp_is_nonblocking_error(errno) ((errno) == EAGAIN || (errno) == EWOULDBLOCK) #else #define mp_is_nonblocking_error(errno) (0)