diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 15:39:55 -0400 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 15:39:55 -0400 |
commit | 61e6523d815b3c69b4cb978828d7df7e909aee81 (patch) | |
tree | a197bc31aac29c981efc5d497695a920ba5ebb90 /passlib/utils/decor.py | |
parent | 034adeef2a3e8582135002ee61b38fe7063b4f6e (diff) | |
download | passlib-61e6523d815b3c69b4cb978828d7df7e909aee81.tar.gz |
cleanup old python compat - assorted minor cleanups & fixes from conversion
Diffstat (limited to 'passlib/utils/decor.py')
-rw-r--r-- | passlib/utils/decor.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/passlib/utils/decor.py b/passlib/utils/decor.py index bd4c290..aa40925 100644 --- a/passlib/utils/decor.py +++ b/passlib/utils/decor.py @@ -162,8 +162,7 @@ def deprecated_function(msg=None, deprecated=None, removed=None, updoc=True, def build(func): is_classmethod = _is_method and isinstance(func, classmethod) if is_classmethod: - # NOTE: PY26 doesn't support "classmethod().__func__" directly... - func = func.__get__(None, type).__func__ + func = func.__func__ opts = dict( mod=func_module or func.__module__, name=func.__name__, |