summaryrefslogtreecommitdiff
path: root/passlib/ext
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2016-06-15 18:07:59 -0400
committerEli Collins <elic@assurancetechnologies.com>2016-06-15 18:07:59 -0400
commitce23c2ab15e70b612cbd902bf0513c0cf6d734e9 (patch)
tree3b44c5799cd1aff93244d42d2c87e891b4b60e6d /passlib/ext
parentfbe95e1cd44c27c9b32dc8dfa3008b59ffbc9baa (diff)
downloadpasslib-ce23c2ab15e70b612cbd902bf0513c0cf6d734e9.tar.gz
renamed PasswordHandler.replace() back to PasswordHandler.using()
this basically reversed rev 5c41b0153d4f; after using it a bit more, decided the name didn't indicate as well what the method was doing.
Diffstat (limited to 'passlib/ext')
-rw-r--r--passlib/ext/django/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/passlib/ext/django/utils.py b/passlib/ext/django/utils.py
index 3ed1c74..3a18376 100644
--- a/passlib/ext/django/utils.py
+++ b/passlib/ext/django/utils.py
@@ -293,7 +293,7 @@ class _PasslibHasherWrapper(object):
if self._has_rounds:
# XXX: could cache this subclass somehow (would have to intercept writes to self.rounds)
# TODO: always call subcls/handler.needs_update() in case there's other things to check
- subcls = self.passlib_handler.replace(min_rounds=self.rounds, max_rounds=self.rounds)
+ subcls = self.passlib_handler.using(min_rounds=self.rounds, max_rounds=self.rounds)
if subcls.needs_update(encoded):
return True
return False