Comment where -2 value comes from

This commit is contained in:
Scott Shawcroft 2021-07-22 16:38:48 -07:00
parent f84cb94819
commit 2cb25622d0
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ STATIC mp_obj_t socketpool_socketpool_getaddrinfo(size_t n_args, const mp_obj_t
}
if (ip_str == mp_const_none) {
mp_raise_OSError(-2);
mp_raise_OSError(-2); // socket.EAI_NONAME from CPython
}
mp_obj_tuple_t *tuple = MP_OBJ_TO_PTR(mp_obj_new_tuple(5, NULL));