fix: 编译cpython
This commit is contained in:
@@ -8,15 +8,19 @@ typedef struct PyOmniSession {
|
||||
omnisocket_session_t session;
|
||||
} PyOmniSession;
|
||||
|
||||
static const char *PyOmniSession_recv_doc =
|
||||
"recv(timeout_ms=-1) -> (from_peer, msg_type, payload) | None";
|
||||
PyDoc_STRVAR(
|
||||
PyOmniSession_recv_doc,
|
||||
"recv(timeout_ms=-1) -> (from_peer, msg_type, payload) | None"
|
||||
);
|
||||
|
||||
static const char *PyOmniSession_recv_into_doc =
|
||||
PyDoc_STRVAR(
|
||||
PyOmniSession_recv_into_doc,
|
||||
"recv_into(buffer, timeout_ms=-1) -> dict | None\n"
|
||||
"\n"
|
||||
"The writable buffer must be large enough for the full message body.\n"
|
||||
"If it is too small, BufferError reports the required size but the\n"
|
||||
"current frame has already been consumed and is lost.";
|
||||
"current frame has already been consumed and is lost."
|
||||
);
|
||||
|
||||
static PyObject *PyOmniSession_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) {
|
||||
PyOmniSession *self;
|
||||
|
||||
Reference in New Issue
Block a user