summaryrefslogtreecommitdiff
path: root/passlib/utils
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2011-02-09 12:31:41 -0500
committerEli Collins <elic@assurancetechnologies.com>2011-02-09 12:31:41 -0500
commit15f6fe8633ceb47695e05ff1bc0d7b95db0e3075 (patch)
tree67b8ca4c9939f010a45db80779ecdd1af2996155 /passlib/utils
parentc646a54645e492f48f70c0a26ead71b51484d25c (diff)
downloadpasslib-15f6fe8633ceb47695e05ff1bc0d7b95db0e3075.tar.gz
renamed rounds_cost constants to "linear" and "log2"
Diffstat (limited to 'passlib/utils')
-rw-r--r--passlib/utils/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/passlib/utils/__init__.py b/passlib/utils/__init__.py
index 1190c60..33fcdeb 100644
--- a/passlib/utils/__init__.py
+++ b/passlib/utils/__init__.py
@@ -447,8 +447,8 @@ def autodocument(scope, salt_charset="[./0-9A-Za-z]", context_doc=''):
min_rounds = scope['min_rounds']
max_rounds = scope['max_rounds']
rounds_cost = scope['rounds_cost']
- assert rounds_cost in ("r","2**r")
- log_rounds = (rounds_cost == "2**r")
+ assert rounds_cost in ("linear","log2")
+ log_rounds = (rounds_cost == "log2")
context_kwds = scope['context_kwds']