summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2015-06-01 14:24:12 -0400
committerTres Seaver <tseaver@palladion.com>2015-06-01 14:24:12 -0400
commitc3e15d801b0ea46ead0931246b02b8f8d086b9cb (patch)
tree84dec0cd4a5ddc26a2ee86f6cf568c69bfa09809 /src
parent2b0195ccd8586f0daa0db342866e15cdfac123bb (diff)
downloadzope-security-c3e15d801b0ea46ead0931246b02b8f8d086b9cb.tar.gz
Fix 'py27-pure'/'py33-pure' tox environments.
Diffstat (limited to 'src')
-rw-r--r--src/zope/security/checker.py2
-rw-r--r--src/zope/security/proxy.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/zope/security/checker.py b/src/zope/security/checker.py
index 9687f19..8fc4890 100644
--- a/src/zope/security/checker.py
+++ b/src/zope/security/checker.py
@@ -441,7 +441,7 @@ _available_by_default = []
# Get optimized versions
try:
import zope.security._zope_security_checker
-except ImportError: #pragma NO COVER
+except (ImportError, AttributeError): #pragma NO COVER PyPy / PURE_PYTHON
pass
else:
from zope.security._zope_security_checker import _checkers, selectChecker
diff --git a/src/zope/security/proxy.py b/src/zope/security/proxy.py
index f023ca3..ccfd111 100644
--- a/src/zope/security/proxy.py
+++ b/src/zope/security/proxy.py
@@ -327,7 +327,7 @@ def getObjectPy(proxy):
try:
from zope.security._proxy import _Proxy
-except ImportError: #pragma NO COVER PyPy
+except (ImportError, AttributeError): #pragma NO COVER PyPy / PURE_PYTHON
getChecker = getCheckerPy
getObject = getObjectPy
Proxy = ProxyPy