diff MoinMoin/support/passlib/handlers/digests.py @ 6096:86a41c2bedec

upgrade passlib from 1.6.2 to 1.6.5
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 05 Sep 2016 23:44:04 +0200
parents efd7c0be3339
children 7f0616feeae9
line wrap: on
line diff
--- a/MoinMoin/support/passlib/handlers/digests.py	Mon Sep 05 23:29:03 2016 +0200
+++ b/MoinMoin/support/passlib/handlers/digests.py	Mon Sep 05 23:44:04 2016 +0200
@@ -24,10 +24,10 @@
 ]
 
 #=============================================================================
-# helpers for hexidecimal hashes
+# helpers for hexadecimal hashes
 #=============================================================================
 class HexDigestHash(uh.StaticHandler):
-    "this provides a template for supporting passwords stored as plain hexidecimal hashes"
+    """this provides a template for supporting passwords stored as plain hexadecimal hashes"""
     #===================================================================
     # class attrs
     #===================================================================
@@ -60,7 +60,7 @@
         __module__=module, # so ABCMeta won't clobber it
         _hash_func=staticmethod(hash), # sometimes it's a function, sometimes not. so wrap it.
         checksum_size=h.digest_size*2,
-        __doc__="""This class implements a plain hexidecimal %s hash, and follows the :ref:`password-hash-api`.
+        __doc__="""This class implements a plain hexadecimal %s hash, and follows the :ref:`password-hash-api`.
 
 It supports no optional or contextual keywords.
 """ % (digest_name,)
@@ -106,7 +106,7 @@
 
     @classmethod
     def _norm_hash(cls, hash):
-        "normalize hash to native string, and validate it"
+        """normalize hash to native string, and validate it"""
         hash = to_native_str(hash, param="hash")
         if len(hash) != 32:
             raise uh.exc.MalformedHashError(cls, "wrong size")