[Python-checkins] r68027 - python/branches/py3k/Doc/library/hashlib.rst

benjamin.peterson python-checkins at python.org
Mon Dec 29 21:52:10 CET 2008


Author: benjamin.peterson
Date: Mon Dec 29 21:52:09 2008
New Revision: 68027

Log:
hexdigest() doesn't return bytes #4771

Modified:
   python/branches/py3k/Doc/library/hashlib.rst

Modified: python/branches/py3k/Doc/library/hashlib.rst
==============================================================================
--- python/branches/py3k/Doc/library/hashlib.rst	(original)
+++ python/branches/py3k/Doc/library/hashlib.rst	Mon Dec 29 21:52:09 2008
@@ -64,7 +64,7 @@
 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 @@
    >>> 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:


More information about the Python-checkins mailing list