merge with 3.3
authorGeorg Brandl <georg@python.org>
Sun, 6 Oct 2013 07:49:18 +0000 (09:49 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 6 Oct 2013 07:49:18 +0000 (09:49 +0200)
1  2 
Doc/library/hmac.rst

index 4c707e950be891f30c5cb460f7b321f6210b7973,95756933d18580bbcbb42416d9c2eea2e635bc35..1d928ea86002a2d9edfeda66c222135e8767b219
@@@ -16,14 -16,11 +16,14 @@@ This module implements the HMAC algorit
  
  .. function:: new(key, msg=None, digestmod=None)
  
 -   Return a new hmac object.  *key* is a bytes object giving the secret key.  If
 -   *msg* is present, the method call ``update(msg)`` is made.  *digestmod* is
 -   the digest constructor or module for the HMAC object to use. It defaults to
 -   the :data:`hashlib.md5` constructor.
 +   Return a new hmac object.  *key* is a bytes or bytearray object giving the
 +   secret key.  If *msg* is present, the method call ``update(msg)`` is made.
 +   *digestmod* is the digest constructor or module for the HMAC object to use.
-    It defaults to the :func:`hashlib.md5` constructor.
++   It defaults to the :data:`hashlib.md5` constructor.
  
 +   .. versionchanged:: 3.4
 +      Parameter *key* can be a bytes or bytearray object. Parameter *msg* can
 +      be of any type supported by :mod:`hashlib`.
  
  An HMAC object has the following methods: