summaryrefslogtreecommitdiff
path: root/mailman/passwords.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-09-26 21:11:51 -0400
committerBarry Warsaw2008-09-26 21:11:51 -0400
commitb6eff15e7d34e60e0fa9f13b5e944d73bf499414 (patch)
tree31dc0a415cf454740f1cb2c02b35a341889bb28c /mailman/passwords.py
parent6f4351721559e8b7b577d3a01216fec88121ed11 (diff)
downloadmailman-b6eff15e7d34e60e0fa9f13b5e944d73bf499414.tar.gz
mailman-b6eff15e7d34e60e0fa9f13b5e944d73bf499414.tar.zst
mailman-b6eff15e7d34e60e0fa9f13b5e944d73bf499414.zip
Diffstat (limited to 'mailman/passwords.py')
-rw-r--r--mailman/passwords.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mailman/passwords.py b/mailman/passwords.py
index b353e7710..65bf8de05 100644
--- a/mailman/passwords.py
+++ b/mailman/passwords.py
@@ -30,7 +30,7 @@ from base64 import urlsafe_b64decode as decode
from base64 import urlsafe_b64encode as encode
from munepy import Enum
-from mailman import Errors
+from mailman.core import errors
SALT_LENGTH = 20 # bytes
ITERATIONS = 2000
@@ -221,7 +221,7 @@ def make_secret(password, scheme=None):
password = password.encode('utf-8')
scheme_class = _SCHEMES_BY_ENUM.get(scheme)
if not scheme_class:
- raise Errors.BadPasswordSchemeError(scheme)
+ raise errors.BadPasswordSchemeError(scheme)
secret = scheme_class.make_secret(password)
return '{%s}%s' % (scheme_class.TAG, secret)