summaryrefslogtreecommitdiff
path: root/src/zope/security/checker.py
diff options
context:
space:
mode:
authorJason Madden <jason+github@nextthought.com>2017-05-02 07:30:25 -0500
committerGitHub <noreply@github.com>2017-05-02 07:30:25 -0500
commit2b82f83048802017a451d2abcdc2a2bae8ece182 (patch)
tree19c69b09368928c1caec841caddaec9c58890492 /src/zope/security/checker.py
parent40e58ec495da58dd458a38912ef900a6b6e70a9e (diff)
parent486a6c3801bcb7473f190adcc5f80f98fda87362 (diff)
downloadzope-security-2b82f83048802017a451d2abcdc2a2bae8ece182.tar.gz
Merge pull request #22 from zopefoundation/issue20-extension
Be specific that BTrees.keys and .values also are fixed
Diffstat (limited to 'src/zope/security/checker.py')
-rw-r--r--src/zope/security/checker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zope/security/checker.py b/src/zope/security/checker.py
index d75cfd5..3187afc 100644
--- a/src/zope/security/checker.py
+++ b/src/zope/security/checker.py
@@ -781,7 +781,8 @@ else:
# to do iteration. Whitelist it so that they behave the same.
# In addition, Python 3 will attempt to call __len__ on iterators
# for a length hint, so the C implementations also need to be
- # added to the _iteratorChecker.
+ # added to the _iteratorChecker. The same thing automatically
+ # applies for .keys() and .values() since they return the same type.
# We do this here so that all users of zope.security can benefit
# without knowing implementation details.
# See https://github.com/zopefoundation/zope.security/issues/20