Log message for revision 113168:
  Or better remove a private API
  

Changed:
  U   Zope/trunk/src/AccessControl/Permission.py

-=-
Modified: Zope/trunk/src/AccessControl/Permission.py
===================================================================
--- Zope/trunk/src/AccessControl/Permission.py  2010-06-05 19:25:22 UTC (rev 
113167)
+++ Zope/trunk/src/AccessControl/Permission.py  2010-06-05 19:26:14 UTC (rev 
113168)
@@ -139,7 +139,6 @@
 
 
 _registeredPermissions = {}
-_registerdPermission = _registeredPermissions.__contains__
 
 
 def registerPermissions(permissions, defaultDefault=('Manager', )):
@@ -147,7 +146,7 @@
     """
     import Products
     for setting in permissions:
-        if _registerdPermission(setting[0]):
+        if setting[0] in _registeredPermissions:
             continue
         if len(setting)==2:
             perm, methods = setting

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
https://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to