We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a7e28d commit 16f3246Copy full SHA for 16f3246
1 file changed
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,
83
void mp_stream_write_adaptor(void *self, const char *buf, size_t len);
84
85
#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?)
88
#define mp_is_nonblocking_error(errno) ((errno) == EAGAIN || (errno) == EWOULDBLOCK)
89
#else
90
#define mp_is_nonblocking_error(errno) (0)
0 commit comments