summaryrefslogtreecommitdiff
path: root/passlib/utils/__init__.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2013-01-19 15:33:01 -0500
committerEli Collins <elic@assurancetechnologies.com>2013-01-19 15:33:01 -0500
commit4c08f92f9caa64140e0010eae88179f260a28704 (patch)
tree2df0bc5ac5f976348c10a3778992f052f1cccb45 /passlib/utils/__init__.py
parentffc6b005e32e4d3a71d24d27d22b3f46f4674a52 (diff)
downloadpasslib-4c08f92f9caa64140e0010eae88179f260a28704.tar.gz
minor documentation updates
* added some backwards-compat & error handling notes to CryptContext, as suggested by Thomas Waldmann (https://code.google.com/p/passlib/issues/detail?id=27#c2) * clarified alg descriptions and internal comments for lmhash, md5_crypt, cisco, et al * deprecated_method() decorator now checks if ".. deprecated::" stanza already present in docstring * hash_needs_update() won't be removed until release 2.0
Diffstat (limited to 'passlib/utils/__init__.py')
-rw-r--r--passlib/utils/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/passlib/utils/__init__.py b/passlib/utils/__init__.py
index b528e63..654124e 100644
--- a/passlib/utils/__init__.py
+++ b/passlib/utils/__init__.py
@@ -175,7 +175,8 @@ def deprecated_function(msg=None, deprecated=None, removed=None, updoc=True,
warn(text, DeprecationWarning, stacklevel=2)
return func(*args, **kwds)
update_wrapper(wrapper, func)
- if updoc and (deprecated or removed) and wrapper.__doc__:
+ if updoc and (deprecated or removed) and \
+ wrapper.__doc__ and ".. deprecated::" not in wrapper.__doc__:
txt = deprecated or ''
if removed or replacement:
txt += "\n "