From bcdf0cd2a97fa8dfb4cc06352faa0934ccbf236b Mon Sep 17 00:00:00 2001 From: Eli Collins Date: Fri, 27 Dec 2013 13:49:41 -0500 Subject: massive cleanup of documentation typos, thanks to Thomas Waldmann (issue 27, comment 7) (transplant of r1f5b8860b743 from default branch) --- passlib/ext/django/models.py | 4 ++-- passlib/ext/django/utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'passlib/ext') 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) -- cgit v1.2.1