summaryrefslogtreecommitdiff
path: root/passlib/handlers/misc.py
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/handlers/misc.py
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/handlers/misc.py')
-rw-r--r--passlib/handlers/misc.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/passlib/handlers/misc.py b/passlib/handlers/misc.py
index a9057a9..2ff0470 100644
--- a/passlib/handlers/misc.py
+++ b/passlib/handlers/misc.py
@@ -116,8 +116,8 @@ class unix_disabled(uh.MinimalHandler):
default_marker = u("!")
@classmethod
- def replace(cls, marker=None, **kwds):
- subcls = super(unix_disabled, cls).replace(**kwds)
+ def using(cls, marker=None, **kwds):
+ subcls = super(unix_disabled, cls).using(**kwds)
if marker is not None:
if not cls.identify(marker):
raise ValueError("invalid marker: %r" % marker)
@@ -158,7 +158,7 @@ class unix_disabled(uh.MinimalHandler):
def hash(cls, secret, **kwds):
if kwds:
uh.warn_hash_settings_deprecation(cls, kwds)
- return cls.replace(**kwds).hash(secret)
+ return cls.using(**kwds).hash(secret)
uh.validate_secret(secret)
marker = cls.default_marker
assert marker and cls.identify(marker)
@@ -175,7 +175,7 @@ class unix_disabled(uh.MinimalHandler):
return to_native_str(config, param="config")
else:
if marker is not None:
- cls = cls.replace(marker=marker)
+ cls = cls.using(marker=marker)
return cls.hash(secret)
class plaintext(uh.MinimalHandler):