diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-12-29 20:52:09 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-12-29 20:52:09 (GMT) |
commit | 0fa3f3d663ae4c8d79abc20681d072a1015cd2f7 (patch) | |
tree | e15914454fb0c3f2a32a70d87d4d7a12c5749b4b /Doc | |
parent | 5216d083cee461f707e00775159540ed5639abc5 (diff) | |
download | cpython-0fa3f3d663ae4c8d79abc20681d072a1015cd2f7.zip cpython-0fa3f3d663ae4c8d79abc20681d072a1015cd2f7.tar.gz cpython-0fa3f3d663ae4c8d79abc20681d072a1015cd2f7.tar.bz2 |
hexdigest() doesn't return bytes #4771
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/hashlib.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/hashlib.rst b/Doc/library/hashlib.rst index 2741265..ad2bfa5 100644 --- a/Doc/library/hashlib.rst +++ b/Doc/library/hashlib.rst @@ -64,7 +64,7 @@ spammish repetition'``:: More condensed: >>> hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest() - b'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2' + 'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2' A generic :func:`new` constructor that takes the string name of the desired algorithm as its first parameter also exists to allow access to the above listed @@ -76,7 +76,7 @@ Using :func:`new` with an algorithm provided by OpenSSL: >>> h = hashlib.new('ripemd160') >>> h.update(b"Nobody inspects the spammish repetition") >>> h.hexdigest() - b'cc4a5ce1b3df48aec5d22d1f16b894a0b894eccc' + 'cc4a5ce1b3df48aec5d22d1f16b894a0b894eccc' The following values are provided as constant attributes of the hash objects returned by the constructors: |