[Zope-Checkins] CVS: Zope2 - PermissionRole.py:1.9.16.1
fred@digicool.com
fred@digicool.com
Fri, 8 Jun 2001 16:25:50 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/AccessControl
In directory korak.digicool.com:/tmp/cvs-serv20570
Modified Files:
Tag: zope-2_3-branch
PermissionRole.py
Log Message:
Tiny, tiny performance shavings: Remove one builtin lookup and one local
variable assignment.
--- Updated File PermissionRole.py in package Zope2 --
--- PermissionRole.py 2000/12/05 18:49:42 1.9
+++ PermissionRole.py 2001/06/08 20:25:50 1.9.16.1
@@ -141,8 +141,8 @@
"""Implement permission-based roles
"""
- def __of__(self, parent,tt=type(()),st=type(''),getattr=getattr,None=None):
- obj=parent
+ def __of__(self, obj,tt=type(()),st=type(''),
+ getattr=getattr,hasattr=hasattr,None=None):
n=self._p
r=None
while 1: