diff options
author | Georg Brandl <georg@python.org> | 2008-03-22 22:04:10 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-22 22:04:10 (GMT) |
commit | e8f1b00372891ddf6e42886bff397c43dad7a4eb (patch) | |
tree | ed62d4d8c7055404bbfbd1382afadd443cce6944 /Doc/library/hashlib.rst | |
parent | 7a45ab826e9b2ecaee49cc8fd206631395a48927 (diff) | |
download | cpython-e8f1b00372891ddf6e42886bff397c43dad7a4eb.zip cpython-e8f1b00372891ddf6e42886bff397c43dad7a4eb.tar.gz cpython-e8f1b00372891ddf6e42886bff397c43dad7a4eb.tar.bz2 |
Enable doctest running for several other documents.
We have now over 640 doctests that are run with "make doctest".
Diffstat (limited to 'Doc/library/hashlib.rst')
-rw-r--r-- | Doc/library/hashlib.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/hashlib.rst b/Doc/library/hashlib.rst index bfb007f..f544cea 100644 --- a/Doc/library/hashlib.rst +++ b/Doc/library/hashlib.rst @@ -44,7 +44,7 @@ Constructors for hash algorithms that are always present in this module are OpenSSL library that Python uses on your platform. For example, to obtain the digest of the string ``'Nobody inspects the spammish -repetition'``:: +repetition'``: >>> import hashlib >>> m = hashlib.md5() @@ -57,7 +57,7 @@ repetition'``:: >>> m.block_size 64 -More condensed:: +More condensed: >>> hashlib.sha224("Nobody inspects the spammish repetition").hexdigest() 'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2' @@ -67,7 +67,7 @@ algorithm as its first parameter also exists to allow access to the above listed hashes as well as any other algorithms that your OpenSSL library may offer. The named constructors are much faster than :func:`new` and should be preferred. -Using :func:`new` with an algorithm provided by OpenSSL:: +Using :func:`new` with an algorithm provided by OpenSSL: >>> h = hashlib.new('ripemd160') >>> h.update("Nobody inspects the spammish repetition") |