summaryrefslogtreecommitdiff
path: root/passlib/utils
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2011-08-25 18:20:10 -0400
committerEli Collins <elic@assurancetechnologies.com>2011-08-25 18:20:10 -0400
commit3d80e7151ca8b69f115e03bcb91c8ca266ed9e03 (patch)
tree4d14a469fdca18061657476c71d6adcd3033568d /passlib/utils
parent00df5078b8760575321b91fdc878d0c9a04d6c12 (diff)
downloadpasslib-3d80e7151ca8b69f115e03bcb91c8ca266ed9e03.tar.gz
beginning 1.6 dev
* removed previously deprecated support for ConfigParser interpolated files * removed previously deprecated support for set_backend(None)
Diffstat (limited to 'passlib/utils')
-rw-r--r--passlib/utils/handlers.py21
1 files changed, 5 insertions, 16 deletions
diff --git a/passlib/utils/handlers.py b/passlib/utils/handlers.py
index 410ffca..1f906a2 100644
--- a/passlib/utils/handlers.py
+++ b/passlib/utils/handlers.py
@@ -982,7 +982,7 @@ class HasManyBackends(GenericHandler):
document this class's usage
.. attribute:: backends
-
+
tuple containing names of the backends which are supported.
two common names are ``"os_crypt"`` (if backend uses :mod:`crypt`),
and ``"builtin"`` (if the backend is a pure-python fallback).
@@ -995,7 +995,7 @@ class HasManyBackends(GenericHandler):
private class attr used by :meth:`has_backend`
to check if a specific backend is available.
- one of these should be provided by subclass
+ one of these should be provided by subclass
for each backend listed in :attr:`backends`.
"""
@@ -1040,12 +1040,7 @@ class HasManyBackends(GenericHandler):
:returns:
``True`` if backend is currently supported, else ``False``.
"""
- if name in (None, "any", "default"):
- if name is None:
- warn("has_backend(None) is deprecated,"
- " and support will be removed in Passlib 1.6;"
- " use has_backend('any') instead.",
- DeprecationWarning, stacklevel=2)
+ if name in ("any", "default"):
try:
cls.set_backend()
return True
@@ -1089,21 +1084,15 @@ class HasManyBackends(GenericHandler):
* if ``"any"`` or ``"default"`` was specified,
and NO backends are currently available.
-
+
return value should be ignored.
-
+
.. note::
:exc:`~passlib.utils.MissingBackendError` derives
from :exc:`RuntimeError`, since this usually indicates
lack of an external library or OS feature.
"""
- if name is None:
- warn("set_backend(None) is deprecated,"
- " and support will be removed in Passlib 1.6;"
- " use set_backend('any') instead.",
- DeprecationWarning, stacklevel=2)
- name = "any"
if name == "any":
name = cls._backend
if name: