Kaydet (Commit) 8c21ab0a authored tarafından Christian Heimes's avatar Christian Heimes

Issue #27744: correct comment and markup

üst 25bfcd5d
...@@ -136,7 +136,7 @@ created. Socket addresses are represented as follows: ...@@ -136,7 +136,7 @@ created. Socket addresses are represented as follows:
elements ``(type, name [, feat [, mask]])``, where: elements ``(type, name [, feat [, mask]])``, where:
- *type* is the algorithm type as string, e.g. ``aead``, ``hash``, - *type* is the algorithm type as string, e.g. ``aead``, ``hash``,
``skcipher`` or ``rng``. ``skcipher`` or ``rng``.
- *name* is the algorithm name and operation mode as string, e.g. - *name* is the algorithm name and operation mode as string, e.g.
``sha256``, ``hmac(sha256)``, ``cbc(aes)`` or ``drbg_nopr_ctr_aes256``. ``sha256``, ``hmac(sha256)``, ``cbc(aes)`` or ``drbg_nopr_ctr_aes256``.
......
...@@ -2556,7 +2556,7 @@ sock_setsockopt(PySocketSockObject *s, PyObject *args) ...@@ -2556,7 +2556,7 @@ sock_setsockopt(PySocketSockObject *s, PyObject *args)
} }
PyErr_Clear(); PyErr_Clear();
/* setsockopt(level, opt, (None, flag)) */ /* setsockopt(level, opt, None, flag) */
if (PyArg_ParseTuple(args, "iiO!I:setsockopt", if (PyArg_ParseTuple(args, "iiO!I:setsockopt",
&level, &optname, Py_TYPE(Py_None), &none, &optlen)) { &level, &optname, Py_TYPE(Py_None), &none, &optlen)) {
assert(sizeof(socklen_t) >= sizeof(unsigned int)); assert(sizeof(socklen_t) >= sizeof(unsigned int));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment