Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0fa3f3d

Browse files
committed
hexdigest() doesn't return bytes #4771
1 parent 5216d08 commit 0fa3f3d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/hashlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ spammish repetition'``::
6464
More condensed:
6565

6666
>>> hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest()
67-
b'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2'
67+
'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2'
6868

6969
A generic :func:`new` constructor that takes the string name of the desired
7070
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:
7676
>>> h = hashlib.new('ripemd160')
7777
>>> h.update(b"Nobody inspects the spammish repetition")
7878
>>> h.hexdigest()
79-
b'cc4a5ce1b3df48aec5d22d1f16b894a0b894eccc'
79+
'cc4a5ce1b3df48aec5d22d1f16b894a0b894eccc'
8080

8181
The following values are provided as constant attributes of the hash objects
8282
returned by the constructors:

0 commit comments

Comments
 (0)