diff options
author | Michael Howitz <mh@gocept.com> | 2022-12-23 09:27:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-23 09:27:18 +0100 |
commit | e2d9d9d49ceadb0c62ab96117ffc4dfa532819e0 (patch) | |
tree | 62e9110f084d572bf06f25115c8f1f794a8f19e9 /src/zope/security/decorator.py | |
parent | 831a34f5cf3e2c4297e0da35c4f38e7cf12fac16 (diff) | |
download | zope-security-e2d9d9d49ceadb0c62ab96117ffc4dfa532819e0.tar.gz |
Config with c code template 831a34f5 (#91)
* Drop support for Python 2.7, 3.5, 3.6.
Diffstat (limited to 'src/zope/security/decorator.py')
-rw-r--r-- | src/zope/security/decorator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zope/security/decorator.py b/src/zope/security/decorator.py index 18751d8..5ad9649 100644 --- a/src/zope/security/decorator.py +++ b/src/zope/security/decorator.py @@ -27,7 +27,7 @@ from zope.security.proxy import Proxy from zope.security.proxy import getChecker -class DecoratedSecurityCheckerDescriptor(object): +class DecoratedSecurityCheckerDescriptor: """Descriptor for a Decorator that provides a decorated security checker. """ @@ -36,7 +36,7 @@ class DecoratedSecurityCheckerDescriptor(object): return self else: proxied_object = getProxiedObject(inst) - if type(proxied_object) is Proxy: + if isinstance(proxied_object, Proxy): checker = getChecker(proxied_object) else: checker = getattr(proxied_object, '__Security_checker__', None) |