Skip to content

Commit 8ef24af

Browse files
committed
Documentation fix for SSLContext.wrap_socket
1 parent 7fea970 commit 8ef24af

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

shared-bindings/ssl/SSLContext.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ STATIC mp_obj_t ssl_sslcontext_make_new(const mp_obj_type_t *type, size_t n_args
5151
return MP_OBJ_FROM_PTR(s);
5252
}
5353

54-
//| def wrap_socket(sock: socketpool.Socket, *, server_side: bool = False, server_hostname: Optional[str] = None) -> ssl.SSLSocket:
55-
//| """Wraps the socket into a socket-compatible class that handles SSL negotiation.
56-
//| The socket must be of type SOCK_STREAM."""
57-
//| ...
54+
//| def wrap_socket(self, sock: socketpool.Socket, *, server_side: bool = False, server_hostname: Optional[str] = None) -> ssl.SSLSocket:
55+
//| """Wraps the socket into a socket-compatible class that handles SSL negotiation.
56+
//| The socket must be of type SOCK_STREAM."""
5857
//|
5958

6059
STATIC mp_obj_t ssl_sslcontext_wrap_socket(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {

0 commit comments

Comments
 (0)