summaryrefslogtreecommitdiff
path: root/passlib/ext
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2016-06-13 17:42:28 -0400
committerEli Collins <elic@assurancetechnologies.com>2016-06-13 17:42:28 -0400
commitfa64950f25704e179acbf27825d75ed5d242d443 (patch)
treee0fb1dff43e2bb143e841fcb0ba33dd20a085a31 /passlib/ext
parentd9ef8678371662f000ce3b3d0d1a038b38e3b8d9 (diff)
downloadpasslib-fa64950f25704e179acbf27825d75ed5d242d443.tar.gz
renamed handler.using() method to handler.replace(),
to match stdlib's convention (for things like str, namedtuple, etc)
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 3a18376..3ed1c74 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.using(min_rounds=self.rounds, max_rounds=self.rounds)
+ subcls = self.passlib_handler.replace(min_rounds=self.rounds, max_rounds=self.rounds)
if subcls.needs_update(encoded):
return True
return False