Skip to content

Commit 2cb2562

Browse files
committed
Comment where -2 value comes from
1 parent f84cb94 commit 2cb2562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/socketpool/SocketPool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ STATIC mp_obj_t socketpool_socketpool_getaddrinfo(size_t n_args, const mp_obj_t
123123
}
124124

125125
if (ip_str == mp_const_none) {
126-
mp_raise_OSError(-2);
126+
mp_raise_OSError(-2); // socket.EAI_NONAME from CPython
127127
}
128128

129129
mp_obj_tuple_t *tuple = MP_OBJ_TO_PTR(mp_obj_new_tuple(5, NULL));

0 commit comments

Comments
 (0)