Skip to content

Commit 88fcf4e

Browse files
committed
Removing implementation-specific values for socket/socketpool class attributes
1 parent 1f179b3 commit 88fcf4e

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

shared-bindings/socket/__init__.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ STATIC const mp_obj_type_t socket_type;
4949

5050
//| class socket:
5151
//|
52-
//| AF_INET = 2
53-
//| AF_INET6 = 10
54-
//| SOCK_STREAM = 1
55-
//| SOCK_DGRAM = 2
56-
//| SOCK_RAW = 3
57-
//| IPPROTO_TCP = 6
52+
//| AF_INET: int
53+
//| AF_INET6: int
54+
//| SOCK_STREAM: int
55+
//| SOCK_DGRAM: int
56+
//| SOCK_RAW: int
57+
//| IPPROTO_TCP: int
5858
//|
5959
//| def __init__(self, family: int = AF_INET, type: int = SOCK_STREAM, proto: int = IPPROTO_TCP) -> None:
6060
//| """Create a new socket

shared-bindings/socketpool/SocketPool.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ STATIC mp_obj_t socketpool_socketpool_make_new(const mp_obj_type_t *type, size_t
5757
return MP_OBJ_FROM_PTR(s);
5858
}
5959

60-
//| AF_INET = 0
61-
//| AF_INET6 = 1
62-
//| SOCK_STREAM = 0
63-
//| SOCK_DGRAM = 1
64-
//| SOCK_RAW = 2
65-
//| IPPROTO_TCP = 6
60+
//| AF_INET: int
61+
//| AF_INET6: int
62+
//| SOCK_STREAM: int
63+
//| SOCK_DGRAM: int
64+
//| SOCK_RAW: int
65+
//| IPPROTO_TCP: int
6666
//|
6767
//| def socket(self, family: int = AF_INET, type: int = SOCK_STREAM, proto: int = IPPROTO_TCP) -> socketpool.Socket:
6868
//| """Create a new socket

0 commit comments

Comments
 (0)