From: Larry Hastings Date: Mon, 25 Jun 2012 07:59:34 +0000 (-0700) Subject: Minor grammar refinement for hmac.compare_digest(). X-Git-Tag: v3.3.0b1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48986d68c2bc6da075fed2cb9f8426afc7c6a622;p=thirdparty%2FPython%2Fcpython.git Minor grammar refinement for hmac.compare_digest(). --- diff --git a/Doc/library/hmac.rst b/Doc/library/hmac.rst index 38f1687b0b71..0706ff4378ce 100644 --- a/Doc/library/hmac.rst +++ b/Doc/library/hmac.rst @@ -80,8 +80,8 @@ This module also provides the following helper function: .. note:: If *a* and *b* are of different lengths, or if an error occurs, - a timing attack may be able to reveal information about the types - and lengths of *a* and *b*, but not their values. + a timing attack could theoretically reveal information about the + types and lengths of *a* and *b*--but not their values. .. versionadded:: 3.3 diff --git a/Modules/operator.c b/Modules/operator.c index 5adb4deafbd9..12fdad54d605 100644 --- a/Modules/operator.c +++ b/Modules/operator.c @@ -217,8 +217,8 @@ PyDoc_STRVAR(compare_digest__doc__, "or any type that supports the buffer protocol (e.g. bytes).\n" "\n" "Note: If a and b are of different lengths, or if an error occurs,\n" -"a timing attack may be able to reveal information about the types\n" -"and lengths of a and b, but not their values.\n"); +"a timing attack could theoretically reveal information about the\n" +"types and lengths of a and b--but not their values.\n"); static PyObject* compare_digest(PyObject *self, PyObject *args)