(original) (raw)
changeset: 103074:52404f9596b5 user: Christian Heimes christian@python.org date: Tue Sep 06 00:07:02 2016 +0200 files: Doc/library/socket.rst Modules/socketmodule.c description: Issue #27744: correct comment and markup diff -r ca8d7cb55a8e -r 52404f9596b5 Doc/library/socket.rst --- a/Doc/library/socket.rst Tue Sep 06 00:04:45 2016 +0200 +++ b/Doc/library/socket.rst Tue Sep 06 00:07:02 2016 +0200 @@ -136,7 +136,7 @@ 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``. diff -r ca8d7cb55a8e -r 52404f9596b5 Modules/socketmodule.c --- a/Modules/socketmodule.c Tue Sep 06 00:04:45 2016 +0200 +++ b/Modules/socketmodule.c Tue Sep 06 00:07:02 2016 +0200 @@ -2556,7 +2556,7 @@ } 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)); /christian@python.org