Merge pull request #194 from alex/current-module-hmac
Use current module in the hmac docs, for consistency
diff --git a/docs/hazmat/primitives/hmac.rst b/docs/hazmat/primitives/hmac.rst
index bfbe325..e66de36 100644
--- a/docs/hazmat/primitives/hmac.rst
+++ b/docs/hazmat/primitives/hmac.rst
@@ -8,6 +8,8 @@
Hash-based Message Authentication Codes
=======================================
+.. currentmodule:: cryptography.hazmat.primitives.hmac
+
.. testsetup::
import binascii
@@ -18,7 +20,7 @@
secret key. You can use an HMAC to verify integrity as well as authenticate a
message.
-.. class:: cryptography.hazmat.primitives.hmac.HMAC(key, msg=None, digestmod=None)
+.. class:: HMAC(key, msg=None, digestmod=None)
HMAC objects take a ``key``, a hash class derived from
:class:`~cryptography.primitives.hashes.BaseHash`, and optional message.