Fix documentation builds

This commit is contained in:
Lucian Copeland 2021-01-29 11:18:50 -05:00
parent 815ab5277b
commit a724f6f954
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ void common_hal_ssl_sslcontext_construct(ssl_sslcontext_obj_t* self) {
ssl_sslsocket_obj_t* common_hal_ssl_sslcontext_wrap_socket(ssl_sslcontext_obj_t* self,
socketpool_socket_obj_t* socket, bool server_side, const char* server_hostname) {
if (socket->type != SOCK_STREAM || socket->num != -1) {
if (socket->type != SOCK_STREAM) {
mp_raise_RuntimeError(translate("Invalid socket for TLS"));
}

View File

@ -38,8 +38,8 @@
#include "lib/netutils/netutils.h"
//| class SSLSocket:
//| """Implements TLS security on a subset of `socketpool.socket` functions. Cannot be created
//| directly. Instead, call `context.wrap_socket` on an existing socket object.
//| """Implements TLS security on a subset of `socketpool.Socket` functions. Cannot be created
//| directly. Instead, call `wrap_socket` on an existing socket object.
//|
//| Provides a subset of CPython's `ssl.SSLSocket` API. It only implements the versions of
//| recv that do not allocate bytes objects."""