diff options
Diffstat (limited to 'passlib/utils/decor.py')
-rw-r--r-- | passlib/utils/decor.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/passlib/utils/decor.py b/passlib/utils/decor.py index 392e569..bd4c290 100644 --- a/passlib/utils/decor.py +++ b/passlib/utils/decor.py @@ -12,7 +12,6 @@ import types from warnings import warn # site # pkg -from passlib.utils.compat import PY3 # local __all__ = [ "classproperty", @@ -55,10 +54,7 @@ class hybrid_method(object): def __get__(self, obj, cls): if obj is None: obj = cls - if PY3: - return types.MethodType(self.func, obj) - else: - return types.MethodType(self.func, obj, cls) + return types.MethodType(self.func, obj) #============================================================================= # memoization @@ -103,13 +99,6 @@ class memoized_property(object): setattr(obj, self.__name__, value) return value - if not PY3: - - @property - def im_func(self): - """py2 alias""" - return self.__func__ - def clear_cache(self, obj): """ class-level helper to clear stored value (if any). |