Skip to content

Commit 16f3246

Browse files
committed
py/stream.h: Remove dated comment of POSIX-specificity of EAGAIN.
We have adopted POSIX-compatible error numbers as MicroPython's native.
1 parent 1a7e28d commit 16f3246

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

py/stream.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ mp_uint_t mp_stream_rw(mp_obj_t stream, void *buf, mp_uint_t size, int *errcode,
8383
void mp_stream_write_adaptor(void *self, const char *buf, size_t len);
8484

8585
#if MICROPY_STREAMS_NON_BLOCK
86-
// TODO: This is POSIX-specific (but then POSIX is the only real thing,
87-
// and anything else just emulates it, right?)
8886
#define mp_is_nonblocking_error(errno) ((errno) == EAGAIN || (errno) == EWOULDBLOCK)
8987
#else
9088
#define mp_is_nonblocking_error(errno) (0)

0 commit comments

Comments
 (0)