summaryrefslogtreecommitdiff
path: root/passlib
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2011-01-06 01:44:20 +0000
committerEli Collins <elic@assurancetechnologies.com>2011-01-06 01:44:20 +0000
commit099cfdd41f5b4f0ea6a7379b5d76dd64dc250057 (patch)
treef3e345e9854c2c6a0a3a2ab42df52507a53317dc /passlib
parent086208a98e0fbe2032b4ac31b906d3621788206c (diff)
downloadpasslib-099cfdd41f5b4f0ea6a7379b5d76dd64dc250057.tar.gz
removed need for stub class
Diffstat (limited to 'passlib')
-rw-r--r--passlib/hash.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/passlib/hash.py b/passlib/hash.py
index 877fd99..2828c01 100644
--- a/passlib/hash.py
+++ b/passlib/hash.py
@@ -190,7 +190,7 @@ def h64_gen_salt(size, pad=False):
out += "=" * (-size % 4)
return out
-class UnixHash(stub):
+class UnixHash(object):
"helper used by various hash algorithm utilities"
alg = None
salt = None
@@ -198,11 +198,12 @@ class UnixHash(stub):
rounds = None
source = None
- def __init__(self, alg, salt, chk=None, **kwds):
+ def __init__(self, alg, salt, chk=None, rounds=None, source=None):
self.alg = alg
self.salt = salt
self.chk = chk
- self.__super.__init__(**kwds)
+ self.rounds = rounds
+ self.source = source
#==========================================================
#base interface for all the crypt algorithm implementations