py/stream.h: Remove dated comment of POSIX-specificity of EAGAIN.

We have adopted POSIX-compatible error numbers as MicroPython's native.
pull/2262/head
Paul Sokolovsky 2016-07-25 00:47:00 +03:00
rodzic 1a7e28d8b7
commit 16f324641f
1 zmienionych plików z 0 dodań i 2 usunięć

Wyświetl plik

@ -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)