Skip to content

Commit a724f6f

Browse files
committed
Fix documentation builds
1 parent 815ab52 commit a724f6f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ports/esp32s2/common-hal/ssl/SSLContext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void common_hal_ssl_sslcontext_construct(ssl_sslcontext_obj_t* self) {
3838
ssl_sslsocket_obj_t* common_hal_ssl_sslcontext_wrap_socket(ssl_sslcontext_obj_t* self,
3939
socketpool_socket_obj_t* socket, bool server_side, const char* server_hostname) {
4040

41-
if (socket->type != SOCK_STREAM || socket->num != -1) {
41+
if (socket->type != SOCK_STREAM) {
4242
mp_raise_RuntimeError(translate("Invalid socket for TLS"));
4343
}
4444

shared-bindings/ssl/SSLSocket.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
#include "lib/netutils/netutils.h"
3939

4040
//| class SSLSocket:
41-
//| """Implements TLS security on a subset of `socketpool.socket` functions. Cannot be created
42-
//| directly. Instead, call `context.wrap_socket` on an existing socket object.
41+
//| """Implements TLS security on a subset of `socketpool.Socket` functions. Cannot be created
42+
//| directly. Instead, call `wrap_socket` on an existing socket object.
4343
//|
4444
//| Provides a subset of CPython's `ssl.SSLSocket` API. It only implements the versions of
4545
//| recv that do not allocate bytes objects."""

0 commit comments

Comments
 (0)