diff MoinMoin/support/passlib/handlers/des_crypt.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/des_crypt.py	Mon Sep 05 23:29:03 2016 +0200
+++ b/MoinMoin/support/passlib/handlers/des_crypt.py	Mon Sep 05 23:44:04 2016 +0200
@@ -40,7 +40,7 @@
                for i, c in enumerate(secret[:8]))
 
 def _raw_des_crypt(secret, salt):
-    "pure-python backed for des_crypt"
+    """pure-python backed for des_crypt"""
     assert len(salt) == 2
 
     # NOTE: some OSes will accept non-HASH64 characters in the salt,
@@ -73,7 +73,7 @@
     return h64big.encode_int64(result)
 
 def _bsdi_secret_to_key(secret):
-    "covert secret to DES key used by bsdi_crypt"
+    """covert secret to DES key used by bsdi_crypt"""
     key_value = _crypt_secret_to_key(secret)
     idx = 8
     end = len(secret)
@@ -85,7 +85,7 @@
     return key_value
 
 def _raw_bsdi_crypt(secret, rounds, salt):
-    "pure-python backend for bsdi_crypt"
+    """pure-python backend for bsdi_crypt"""
 
     # decode salt
     try: