summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Howitz <mh@gocept.com>2021-11-23 08:24:30 +0100
committerMichael Howitz <mh@gocept.com>2021-11-23 08:24:30 +0100
commit24075deef5fa998ced091b05b54699f10a3776b5 (patch)
treeb74c65ee2fcc653524337fa78a2d622b6051afdb /src
parentc604df3bf2a44538a006bbf6414121a6aa0abbb9 (diff)
downloadzope-security-24075deef5fa998ced091b05b54699f10a3776b5.tar.gz
Fix tests on Python 3.10 + lint.config-with-c-code
Diffstat (limited to 'src')
-rw-r--r--src/zope/security/checker.py2
-rw-r--r--src/zope/security/decorator.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/zope/security/checker.py b/src/zope/security/checker.py
index 67723e8..fe570d1 100644
--- a/src/zope/security/checker.py
+++ b/src/zope/security/checker.py
@@ -135,7 +135,7 @@ def ProxyFactory(object, checker=None):
directlyProvides(ProxyFactory, ISecurityProxyFactory)
# This import represents part of the API for the proxy module
-from . import proxy
+from . import proxy # noqa: E402 module level import not at top
proxy.ProxyFactory = ProxyFactory
diff --git a/src/zope/security/decorator.py b/src/zope/security/decorator.py
index dfd6fc7..0f9f2f4 100644
--- a/src/zope/security/decorator.py
+++ b/src/zope/security/decorator.py
@@ -74,6 +74,6 @@ class DecoratorBase(SpecificationDecoratorBase, SecurityCheckerDecoratorBase):
# location proxy from here.
# This is the only sane place we found for doing it: it kicks in as soon
# as someone starts using security proxies.
-import zope.location.location
+import zope.location.location # noqa: E402 module level import not at top
zope.location.location.LocationProxy.__Security_checker__ = (
DecoratedSecurityCheckerDescriptor())