From 24075deef5fa998ced091b05b54699f10a3776b5 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Tue, 23 Nov 2021 08:24:30 +0100 Subject: Fix tests on Python 3.10 + lint. --- src/zope/security/checker.py | 2 +- src/zope/security/decorator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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()) -- cgit v1.2.1