summaryrefslogtreecommitdiff
path: root/passlib/ext
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2013-12-27 13:49:41 -0500
committerEli Collins <elic@assurancetechnologies.com>2013-12-27 13:49:41 -0500
commitbcdf0cd2a97fa8dfb4cc06352faa0934ccbf236b (patch)
tree36c3549889c3d8bf8f531b30bb588920c23cc681 /passlib/ext
parent10ddd0c4bf75c21bdd75a3cb0781f020147778b3 (diff)
downloadpasslib-bcdf0cd2a97fa8dfb4cc06352faa0934ccbf236b.tar.gz
massive cleanup of documentation typos, thanks to Thomas Waldmann (issue 27, comment 7) (transplant of r1f5b8860b743 from default branch)
Diffstat (limited to 'passlib/ext')
-rw-r--r--passlib/ext/django/models.py4
-rw-r--r--passlib/ext/django/utils.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/passlib/ext/django/models.py b/passlib/ext/django/models.py
index 6c4d245..a202c93 100644
--- a/passlib/ext/django/models.py
+++ b/passlib/ext/django/models.py
@@ -61,7 +61,7 @@ def _apply_patch():
FORMS_PATH = "django.contrib.auth.forms"
#
- # import UNUSUABLE_PASSWORD and is_password_usuable() helpers
+ # import UNUSABLE_PASSWORD and is_password_usable() helpers
# (providing stubs for older django versions)
#
if VERSION < (1,4):
@@ -161,7 +161,7 @@ def _apply_patch():
@_manager.monkeypatch(MODELS_PATH)
def check_password(password, encoded, setter=None, preferred="default"):
"passlib replacement for check_password()"
- # XXX: this currently ignores "preferred" keyword, since it's purpose
+ # XXX: this currently ignores "preferred" keyword, since its purpose
# was for hash migration, and that's handled by the context.
if not is_valid_secret(password) or not is_password_usable(encoded):
return False
diff --git a/passlib/ext/django/utils.py b/passlib/ext/django/utils.py
index 161212b..1a05c14 100644
--- a/passlib/ext/django/utils.py
+++ b/passlib/ext/django/utils.py
@@ -259,7 +259,7 @@ def _get_hasher(algorithm):
# we haven't patched django, so just import directly
from django.contrib.auth.hashers import get_hasher
else:
- # we've patched django, so have to use patch manager to retreive
+ # we've patched django, so have to use patch manager to retrieve
# original get_hasher() function...
get_hasher = module._manager.getorig("django.contrib.auth.hashers:get_hasher")
return get_hasher(algorithm)