diff options
-rw-r--r-- | src/zope/security/proxy.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/zope/security/proxy.py b/src/zope/security/proxy.py index 0298559..eac3563 100644 --- a/src/zope/security/proxy.py +++ b/src/zope/security/proxy.py @@ -31,15 +31,10 @@ removeSecurityProxy = getObject from zope.security.checker import ProxyFactory def getTestProxyItems(proxy): - """Try to get checker names and permissions for testing - - If this succeeds, a sorted sequence of items is returned, - otherwise, None is returned. + """Return a sorted sequence of checker names and permissions for testing """ checker = getChecker(proxy) - items = checker.get_permissions.items() - items.sort() - return items + return sorted(checker.get_permissions.items()) builtin_isinstance = None |