]> granicus.if.org Git - python/commitdiff
Issue #27744: correct comment and markup
authorChristian Heimes <christian@python.org>
Mon, 5 Sep 2016 22:07:02 +0000 (00:07 +0200)
committerChristian Heimes <christian@python.org>
Mon, 5 Sep 2016 22:07:02 +0000 (00:07 +0200)
Doc/library/socket.rst
Modules/socketmodule.c

index ec793ba16a6c21d72576f360e78dc667a9c6e744..4a2cf11f8e27dc132e5d93d4b0bb7fb6d4133c7e 100644 (file)
@@ -136,7 +136,7 @@ created.  Socket addresses are represented as follows:
   elements ``(type, name [, feat [, mask]])``, where:
 
   - *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.
     ``sha256``, ``hmac(sha256)``, ``cbc(aes)`` or ``drbg_nopr_ctr_aes256``.
index 42ae2fbc54e328b460b958f0f11ffba04cfd93c9..0b45c334f4f42d49b4fab46728775fd867d693db 100644 (file)
@@ -2556,7 +2556,7 @@ sock_setsockopt(PySocketSockObject *s, PyObject *args)
     }
 
     PyErr_Clear();
-    /* setsockopt(level, opt, (None, flag)) */
+    /* setsockopt(level, opt, None, flag) */
     if (PyArg_ParseTuple(args, "iiO!I:setsockopt",
                          &level, &optname, Py_TYPE(Py_None), &none, &optlen)) {
         assert(sizeof(socklen_t) >= sizeof(unsigned int));