bpo-20216: Correct docstrings of digest() methods in hashlib. (GH-9873)

This commit is contained in:
Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) 2018-10-19 23:12:53 +05:30 committed by Serhiy Storchaka
parent dd13c88b53
commit f192aeb95a
9 changed files with 17 additions and 17 deletions

View file

@ -338,12 +338,12 @@ SHA1Type_copy_impl(SHA1object *self)
/*[clinic input]
SHA1Type.digest
Return the digest value as a string of binary data.
Return the digest value as a bytes object.
[clinic start generated code]*/
static PyObject *
SHA1Type_digest_impl(SHA1object *self)
/*[clinic end generated code: output=2f05302a7aa2b5cb input=205d47e1927fd009]*/
/*[clinic end generated code: output=2f05302a7aa2b5cb input=13824b35407444bd]*/
{
unsigned char digest[SHA1_DIGESTSIZE];
struct sha1_state temp;